forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5c38a1d
committed
Fix core dump in pg_dump --binary-upgrade on zero-column composite type.
This reverts nearly all of commit28f6cabin favor of just using the typrelid we already have in pg_dump's TypeInfostruct for the composite type. As coded, it'd crash if the composite typehad no attributes, since then the query would return no rows.Back-patch to all supported versions. It seems to not really be a problemin 9.0 because that version rejects the syntax "create type t as ()", butwe might as well keep the logic similar in all affected branches.Report and fix by Rushabh Lathia.1 parent7584649 commit5c38a1d
1 file changed
+3
-9
lines changedLines changed: 3 additions & 9 deletions
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
Comments
(0)