Commit 5c38a1d
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 7584649 commit 5c38a1d
1 file changed
+3
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9273 | 9273 | | |
9274 | 9274 | | |
9275 | 9275 | | |
9276 | | - | |
9277 | 9276 | | |
9278 | 9277 | | |
9279 | 9278 | | |
| |||
9294 | 9293 | | |
9295 | 9294 | | |
9296 | 9295 | | |
9297 | | - | |
9298 | | - | |
| 9296 | + | |
9299 | 9297 | | |
9300 | 9298 | | |
9301 | 9299 | | |
| |||
9313 | 9311 | | |
9314 | 9312 | | |
9315 | 9313 | | |
9316 | | - | |
9317 | | - | |
| 9314 | + | |
9318 | 9315 | | |
9319 | 9316 | | |
9320 | 9317 | | |
| |||
9332 | 9329 | | |
9333 | 9330 | | |
9334 | 9331 | | |
9335 | | - | |
9336 | 9332 | | |
9337 | 9333 | | |
9338 | 9334 | | |
9339 | | - | |
9340 | | - | |
9341 | 9335 | | |
9342 | 9336 | | |
9343 | | - | |
| 9337 | + | |
9344 | 9338 | | |
9345 | 9339 | | |
9346 | 9340 | | |
| |||
0 commit comments