pgsql: Fix core dump in pg_dump --binary-upgrade on zero-column composi

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix core dump in pg_dump --binary-upgrade on zero-column composi
Дата
Msg-id E1XfAiu-0005NX-QH@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix core dump in pg_dump --binary-upgrade on zero-column composite type.

This reverts nearly all of commit 28f6cab61ab8958b1a7dfb019724687d92722538
in favor of just using the typrelid we already have in pg_dump's TypeInfo
struct for the composite type.  As coded, it'd crash if the composite type
had no attributes, since then the query would return no rows.

Back-patch to all supported versions.  It seems to not really be a problem
in 9.0 because that version rejects the syntax "create type t as ()", but
we might as well keep the logic similar in all affected branches.

Report and fix by Rushabh Lathia.

Branch
------
REL9_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/9a540c1ef6dfa8b32b79bed7a811ad24c380075c

Modified Files
--------------
src/bin/pg_dump/pg_dump.c |   12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix core dump in pg_dump --binary-upgrade on zero-column composi
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix core dump in pg_dump --binary-upgrade on zero-column composi