Re: contrib/ltree patches
От | Teodor Sigaev |
---|---|
Тема | Re: contrib/ltree patches |
Дата | |
Msg-id | 3DE4F8EB.4090405@stack.net обсуждение исходный текст |
Ответ на | Re: contrib/ltree patches ("Dan Langille" <dan@langille.org>) |
Ответы |
Re: contrib/ltree patches
|
Список | pgsql-hackers |
>>What is the reason for changing delimiter? > > > My tree represents a file system. Here are some entries: >>>Below are the patches to make this change. I have also moved the >>>delimiter to a DEFINE so that other customizations are easily done. >>>This is a work in progress. >> > >>It's good. > > #define ISALNUM(x) ( isalnum((unsigned int)(x)) || (x) == '_' || > (x) == '-' || (x) == '.' || (x) == '+' || (x) == ':' || (x) == '~' || > (x) == '%' || (x) == ',' || (x) == '#') > > Given that I am trying to allow any valid filename, I think ISALNUM > needs to allow any ASCII character. > > I also think I will need to modify the parsing within lquery_in to > allow escaping of characters it recognizes but which may be part of a > file name (e.g. :%~ may be part of a file name, but these are special > characters to lquery_in). That I think will be the biggest change. Ok, I think it's a good extension. Let you prepare cumulative patch. Nevertheless, we have no chance to insert this to 7.3 release :(. Only for 7.3.1 or even 7.4. -- Teodor Sigaev teodor@stack.net
В списке pgsql-hackers по дате отправления: