Commit 31021e7
committed
Fix core dump in pg_dump --binary-upgrade on zero-column composite type.
This reverts nearly all of commit 28f6cab
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.1 parent 870a980 commit 31021e7
1 file changed
+2
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7309 | 7309 | | |
7310 | 7310 | | |
7311 | 7311 | | |
7312 | | - | |
7313 | 7312 | | |
7314 | 7313 | | |
7315 | 7314 | | |
| |||
7319 | 7318 | | |
7320 | 7319 | | |
7321 | 7320 | | |
7322 | | - | |
7323 | | - | |
| 7321 | + | |
7324 | 7322 | | |
7325 | 7323 | | |
7326 | 7324 | | |
| |||
7341 | 7339 | | |
7342 | 7340 | | |
7343 | 7341 | | |
7344 | | - | |
7345 | 7342 | | |
7346 | 7343 | | |
7347 | 7344 | | |
7348 | | - | |
7349 | | - | |
7350 | 7345 | | |
7351 | | - | |
| 7346 | + | |
7352 | 7347 | | |
7353 | 7348 | | |
7354 | 7349 | | |
| |||
0 commit comments