forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit787e20b
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 parent7c67b93 commit787e20b
1 file changed
+3
-9
lines changedLines changed: 3 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8326 | 8326 |
| |
8327 | 8327 |
| |
8328 | 8328 |
| |
8329 |
| - | |
8330 | 8329 |
| |
8331 | 8330 |
| |
8332 | 8331 |
| |
| |||
8347 | 8346 |
| |
8348 | 8347 |
| |
8349 | 8348 |
| |
8350 |
| - | |
8351 |
| - | |
| 8349 | + | |
8352 | 8350 |
| |
8353 | 8351 |
| |
8354 | 8352 |
| |
| |||
8366 | 8364 |
| |
8367 | 8365 |
| |
8368 | 8366 |
| |
8369 |
| - | |
8370 |
| - | |
| 8367 | + | |
8371 | 8368 |
| |
8372 | 8369 |
| |
8373 | 8370 |
| |
| |||
8385 | 8382 |
| |
8386 | 8383 |
| |
8387 | 8384 |
| |
8388 |
| - | |
8389 | 8385 |
| |
8390 | 8386 |
| |
8391 | 8387 |
| |
8392 |
| - | |
8393 |
| - | |
8394 | 8388 |
| |
8395 | 8389 |
| |
8396 |
| - | |
| 8390 | + | |
8397 | 8391 |
| |
8398 | 8392 |
| |
8399 | 8393 |
| |
|
0 commit comments
Comments
(0)