aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/dbcommands.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-10-17 12:49:00 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-10-17 12:49:00 -0400
commit5c38a1d4ecce849b1e105f59ccca5a926181e4f0 (patch)
tree19d95c6f5d3caf2c4724c8f6cfc789518abe497e /src/backend/commands/dbcommands.c
parent7584649a1c58029a83a7a57d74cedcf1af434c97 (diff)
downloadpostgresql-5c38a1d4ecce849b1e105f59ccca5a926181e4f0.tar.gz
postgresql-5c38a1d4ecce849b1e105f59ccca5a926181e4f0.zip
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/backend/commands/dbcommands.c')
0 files changed, 0 insertions, 0 deletions