forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit015cda4
committed
Fix pg_dump to dump casts between auto-generated types.
The heuristic for when to dump a cast failed for a cast between tablerowtypes, as reported by Frédéric Rejol. Fix it by settingthe "dump" flag for such a type the same way as the flag is set for theunderlying table or base type. This won't result in the auto-generatedtype appearing in the output, since setting its objType to DO_DUMMY_TYPEunconditionally suppresses that. But it will result in dumpCast doing whatwas intended.Back-patch to 8.3. The 8.2 code is rather different in this area, and itdoesn't seem worth any risk to fix a corner case that nobody has stumbledon before.1 parent9ca46f5 commit015cda4
2 files changed
+21
-7
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
131 | 131 |
| |
132 | 132 |
| |
133 | 133 |
| |
134 |
| - | |
| 134 | + | |
135 | 135 |
| |
136 | 136 |
| |
137 | 137 |
| |
|
Lines changed: 20 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1021 | 1021 |
| |
1022 | 1022 |
| |
1023 | 1023 |
| |
1024 |
| - | |
1025 |
| - | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
1026 | 1029 |
| |
1027 | 1030 |
| |
1028 | 1031 |
| |
| |||
1031 | 1034 |
| |
1032 | 1035 |
| |
1033 | 1036 |
| |
1034 |
| - | |
| 1037 | + | |
| 1038 | + | |
1035 | 1039 |
| |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
1036 | 1045 |
| |
1037 | 1046 |
| |
1038 | 1047 |
| |
1039 |
| - | |
| 1048 | + | |
1040 | 1049 |
| |
1041 |
| - | |
1042 | 1050 |
| |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
1043 | 1057 |
| |
1044 | 1058 |
| |
1045 | 1059 |
| |
1046 |
| - | |
| 1060 | + | |
1047 | 1061 |
| |
1048 | 1062 |
| |
1049 | 1063 |
| |
|
0 commit comments
Comments
(0)