forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit31021e7
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 parent870a980 commit31021e7
1 file changed
+2
-7
lines changedLines changed: 2 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7309 | 7309 |
| |
7310 | 7310 |
| |
7311 | 7311 |
| |
7312 |
| - | |
7313 | 7312 |
| |
7314 | 7313 |
| |
7315 | 7314 |
| |
| |||
7319 | 7318 |
| |
7320 | 7319 |
| |
7321 | 7320 |
| |
7322 |
| - | |
7323 |
| - | |
| 7321 | + | |
7324 | 7322 |
| |
7325 | 7323 |
| |
7326 | 7324 |
| |
| |||
7341 | 7339 |
| |
7342 | 7340 |
| |
7343 | 7341 |
| |
7344 |
| - | |
7345 | 7342 |
| |
7346 | 7343 |
| |
7347 | 7344 |
| |
7348 |
| - | |
7349 |
| - | |
7350 | 7345 |
| |
7351 |
| - | |
| 7346 | + | |
7352 | 7347 |
| |
7353 | 7348 |
| |
7354 | 7349 |
| |
|
0 commit comments
Comments
(0)