Commit 0c9391e
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 2784b68 commit 0c9391e
1 file changed
+3
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8085 | 8085 | | |
8086 | 8086 | | |
8087 | 8087 | | |
8088 | | - | |
8089 | 8088 | | |
8090 | 8089 | | |
8091 | 8090 | | |
| |||
8106 | 8105 | | |
8107 | 8106 | | |
8108 | 8107 | | |
8109 | | - | |
8110 | | - | |
| 8108 | + | |
8111 | 8109 | | |
8112 | 8110 | | |
8113 | 8111 | | |
| |||
8125 | 8123 | | |
8126 | 8124 | | |
8127 | 8125 | | |
8128 | | - | |
8129 | | - | |
| 8126 | + | |
8130 | 8127 | | |
8131 | 8128 | | |
8132 | 8129 | | |
| |||
8145 | 8142 | | |
8146 | 8143 | | |
8147 | 8144 | | |
8148 | | - | |
8149 | 8145 | | |
8150 | 8146 | | |
8151 | 8147 | | |
8152 | | - | |
8153 | | - | |
8154 | 8148 | | |
8155 | | - | |
| 8149 | + | |
8156 | 8150 | | |
8157 | 8151 | | |
8158 | 8152 | | |
| |||
0 commit comments