forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9a540c1
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 parent137e7c1 commit9a540c1
1 file changed
+3
-9
lines changedLines changed: 3 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8853 | 8853 |
| |
8854 | 8854 |
| |
8855 | 8855 |
| |
8856 |
| - | |
8857 | 8856 |
| |
8858 | 8857 |
| |
8859 | 8858 |
| |
| |||
8874 | 8873 |
| |
8875 | 8874 |
| |
8876 | 8875 |
| |
8877 |
| - | |
8878 |
| - | |
| 8876 | + | |
8879 | 8877 |
| |
8880 | 8878 |
| |
8881 | 8879 |
| |
| |||
8893 | 8891 |
| |
8894 | 8892 |
| |
8895 | 8893 |
| |
8896 |
| - | |
8897 |
| - | |
| 8894 | + | |
8898 | 8895 |
| |
8899 | 8896 |
| |
8900 | 8897 |
| |
| |||
8912 | 8909 |
| |
8913 | 8910 |
| |
8914 | 8911 |
| |
8915 |
| - | |
8916 | 8912 |
| |
8917 | 8913 |
| |
8918 | 8914 |
| |
8919 |
| - | |
8920 |
| - | |
8921 | 8915 |
| |
8922 | 8916 |
| |
8923 |
| - | |
| 8917 | + | |
8924 | 8918 |
| |
8925 | 8919 |
| |
8926 | 8920 |
| |
|
0 commit comments
Comments
(0)