pgsql: Fix pg_dump to dump casts between auto-generated types.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Fix pg_dump to dump casts between auto-generated types.
Дата
Msg-id E1RGGwk-0004Zm-Hx@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix pg_dump to dump casts between auto-generated types.

The heuristic for when to dump a cast failed for a cast between table
rowtypes, as reported by Frédéric Rejol.  Fix it by setting
the "dump" flag for such a type the same way as the flag is set for the
underlying table or base type.  This won't result in the auto-generated
type appearing in the output, since setting its objType to DO_DUMMY_TYPE
unconditionally suppresses that.  But it will result in dumpCast doing what
was intended.

Back-patch to 8.3.  The 8.2 code is rather different in this area, and it
doesn't seem worth any risk to fix a corner case that nobody has stumbled
on before.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/35d6ce97e78be24eca29226b3b67ca9a3a1384fd

Modified Files
--------------
src/bin/pg_dump/common.c  |    2 +-
src/bin/pg_dump/pg_dump.c |   26 ++++++++++++++++++++------
2 files changed, 21 insertions(+), 7 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix pg_dump to dump casts between auto-generated types.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Fix pg_dump to dump casts between auto-generated types.