Re: Escape handling in strings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Escape handling in strings
Дата
Msg-id 1741.1119359467@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Escape handling in strings  (Oliver Jowett <oliver@opencloud.com>)
Ответы Re: Escape handling in strings  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Oliver Jowett <oliver@opencloud.com> writes:
> Bruce Momjian wrote:
>> I have received very few replies to my suggestion that we implement E''
>> for escaped strings, so eventually, after a few major releases, we can
>> have '' treat backslashes literally like the SQL standard requires.

> Just checking: with this plan, a client needs to know what server
> version is in use to correctly escape strings, correct? That is, there
> is no escape mechanism that works correctly for both "old" and "new"
> servers?

When the change happens, yes, it will be non compatible.  I don't
recommend thinking of it as a "server version" check though --- we
will put in a read-only GUC variable (like the one for integer
datetimes) and you can check it through the parameter reporting
mechanism.
        regards, tom lane


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

Предыдущее
От: "Matthew T. O'Connor"
Дата:
Сообщение: Re: [PATCHES] default database creation with initdb
Следующее
От: Mag Gam
Дата:
Сообщение: Re: Compiling tsearch2 on AIX