Re: [HACKERS] outfuncs.c utility statement support

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [HACKERS] outfuncs.c utility statement support
Дата
Msg-id 451c4c55-76f7-ad21-1476-2d998290f9cf@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: [HACKERS] outfuncs.c utility statement support  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] outfuncs.c utility statement support  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 6/18/17 10:14, Tom Lane wrote:
> pg_strtok recognizes "<>" and returns length = 0, so debackslash()
> would produce the right answer AFAICS (admittedly, I haven't tested).
> But I don't really want to do it like that because of the wasted
> palloc space and cycles.
> 
>> Maybe
>> local_node->fldname = length ? token[0] : '\0';
>> ?
> 
> Doesn't cope with backslash-quoted characters.  If we're going to bother
> to do anything here, I think we ought to make it reversible for all
> possible characters.

Makes sense.  Updated patch attached.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: [HACKERS] Pluggable storage
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [HACKERS] pg_terminate_backend can terminate background workersand autovacuum launchers