forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb246207
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 parentd1e25b7 commitb246207
2 files changed
+21
-7
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
125 | 125 |
| |
126 | 126 |
| |
127 | 127 |
| |
128 |
| - | |
| 128 | + | |
129 | 129 |
| |
130 | 130 |
| |
131 | 131 |
| |
|
Lines changed: 20 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1093 | 1093 |
| |
1094 | 1094 |
| |
1095 | 1095 |
| |
1096 |
| - | |
1097 |
| - | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
1098 | 1101 |
| |
1099 | 1102 |
| |
1100 | 1103 |
| |
| |||
1103 | 1106 |
| |
1104 | 1107 |
| |
1105 | 1108 |
| |
1106 |
| - | |
| 1109 | + | |
| 1110 | + | |
1107 | 1111 |
| |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
1108 | 1117 |
| |
1109 | 1118 |
| |
1110 | 1119 |
| |
1111 |
| - | |
| 1120 | + | |
1112 | 1121 |
| |
1113 |
| - | |
1114 | 1122 |
| |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1115 | 1129 |
| |
1116 | 1130 |
| |
1117 | 1131 |
| |
1118 |
| - | |
| 1132 | + | |
1119 | 1133 |
| |
1120 | 1134 |
| |
1121 | 1135 |
| |
|
0 commit comments
Comments
(0)