Re: pg_dump: fix crash on error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_dump: fix crash on error
Дата
Msg-id 21979.1122440847@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pg_dump: fix crash on error  (Neil Conway <neilc@samurai.com>)
Ответы Re: pg_dump: fix crash on error
Список pgsql-patches
Neil Conway <neilc@samurai.com> writes:
> Tom Lane wrote:
>> [ scratches head... ]  Did this code change recently?  It's a tad hard
>> to believe that such a thing could have gone unnoticed for long.

> Seems the problem was introduced here:
> http://developer.postgresql.org/cvsweb.cgi/pgsql/src/bin/pg_dump/pg_backup_db.c.diff?r1=1.58;r2=1.59

Oh dear, that makes it my fault :-(

> (I could just revert the code to using PQdb(), but I don't think there's
> a need to mention the database in the error message ourselves --
> PQerrorMessage() should include that information if appropriate.)

I'd go with reverting it to using PQdb, myself.  Looks like I got bit by
the perennial mantra: premature optimization is the root of all evil.

            regards, tom lane

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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: pg_dump: fix crash on error
Следующее
От: Neil Conway
Дата:
Сообщение: Re: pg_dump: fix crash on error