[HACKERS] chomp PQerrorMessage() in backend uses

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема [HACKERS] chomp PQerrorMessage() in backend uses
Дата
Msg-id aaa2ad35-93f9-bd65-6361-c53365120e9a@2ndquadrant.com
обсуждение исходный текст
Ответы Re: [HACKERS] chomp PQerrorMessage() in backend uses  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Here is a patch to systematically trim the trailing newlines off
PQerrorMessage() results in backend uses (dblink, postgres_fdw,
libpqwalreceiver).

I noticed that there are some inconsistent assumptions about whether
PQerrorMessage() can ever return NULL.  From the code, I think that
should not be possible, but some code appears to be prepared for it.
Other code is not.  What is correct?

-- 
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 по дате отправления:

Предыдущее
От: Ashutosh Sharma
Дата:
Сообщение: Re: [HACKERS] pageinspect: Hash index support
Следующее
От: Christoph Berg
Дата:
Сообщение: Re: [HACKERS] One-shot expanded output in psql using \gx