forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3205b30
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 parent4b3b44b commit3205b30
1 file changed
+3
-9
lines changedLines changed: 3 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8978 | 8978 |
| |
8979 | 8979 |
| |
8980 | 8980 |
| |
8981 |
| - | |
8982 | 8981 |
| |
8983 | 8982 |
| |
8984 | 8983 |
| |
| |||
8999 | 8998 |
| |
9000 | 8999 |
| |
9001 | 9000 |
| |
9002 |
| - | |
9003 |
| - | |
| 9001 | + | |
9004 | 9002 |
| |
9005 | 9003 |
| |
9006 | 9004 |
| |
| |||
9018 | 9016 |
| |
9019 | 9017 |
| |
9020 | 9018 |
| |
9021 |
| - | |
9022 |
| - | |
| 9019 | + | |
9023 | 9020 |
| |
9024 | 9021 |
| |
9025 | 9022 |
| |
| |||
9037 | 9034 |
| |
9038 | 9035 |
| |
9039 | 9036 |
| |
9040 |
| - | |
9041 | 9037 |
| |
9042 | 9038 |
| |
9043 | 9039 |
| |
9044 |
| - | |
9045 |
| - | |
9046 | 9040 |
| |
9047 | 9041 |
| |
9048 |
| - | |
| 9042 | + | |
9049 | 9043 |
| |
9050 | 9044 |
| |
9051 | 9045 |
| |
|
0 commit comments
Comments
(0)