diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-10-17 12:49:03 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-10-17 12:49:03 -0400 |
commit | 3205b30bb7a82c8228230a15308a56b302603521 (patch) | |
tree | 8d412b1510a8601c1a8bbc2affca705dd901194d /src/tutorial/basics.source | |
parent | 4b3b44b141a0163ca15fd3eb38589a5aefc499bd (diff) |
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.
Diffstat (limited to 'src/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions