Re: [PATCHES] Use of backslash in tsearch2

Поиск
Список
Период
Сортировка
От Teodor Sigaev
Тема Re: [PATCHES] Use of backslash in tsearch2
Дата
Msg-id 44EAB736.8020405@sigaev.ru
обсуждение исходный текст
Ответы Re: [PATCHES] Use of backslash in tsearch2  (Teodor Sigaev <teodor@sigaev.ru>)
Список pgsql-hackers
>> Teodor, are the new attached regression results correct?  If so, I will
>> apply the patch and update the expected file.

Patch isn't full, simple test (values are took from regression.diffs):
# create table tt (tv tsvector, tq tsquery);
# insert into tt values (E'''1 \\''2''', NULL);
# insert into tt values (E'''1 \\''2''3', NULL);
# insert into tt values ( E'''1 \\''2'' 3', NULL);
# insert into tt values ( E'''1 \\''2'' '' 3'' 4 ', NULL);
# insert into tt values ( NULL, E'''1 \\''2''');
# insert into tt values ( NULL, E'''1 \\''2''');
# insert into tt values ( NULL, E'1&(''2''&('' 4''&(\\|5 | ''6 \\'' !|&'')))');
# insert into tt values ( NULL, E'1&(''2''&('' 4''&(\\|5 | ''6 \\'' !|&'')))');


and try dump table and restore:
ERROR:  syntax error
CONTEXT:  COPY tt, line 5, column tq: "'1 ''2'"

PS I'm not subscribed to -patches, so I post to -hackers

--
Teodor Sigaev                                   E-mail: teodor@sigaev.ru
                                                    WWW: http://www.sigaev.ru/

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Lukas Kahwe Smith
Дата:
Сообщение: Re: news server does not respond
Следующее
От: "Andrew Hammond"
Дата:
Сообщение: Re: BugTracker (Was: Re: 8.2 features status)