forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit14794f9
committed
Fix pg_dump's heuristic for deciding which casts to dump.
Back in 2003 we had a discussion about how to decide which casts to dump.At the time pg_dump really only considered an object's containing schemato decide what to dump (ie, dump whatever's not in pg_catalog), and sowe chose a complicated idea involving whether the underlying types were tobe dumped (cf commita6790ce). But usersare allowed to create casts between built-in types, and we failed to dumpsuch casts. Let's get rid of that heuristic, which has accreted even moreugliness since then, in favor of just looking at the cast's OID to decideif it's a built-in cast or not.In passing, also fix some really ancient code that supposed that it had tomanufacture a dependency for the cast on its cast function; that's onlytrue when dumping from a pre-7.3 server. This just resulted in some wastedcycles and duplicate dependency-list entries with newer servers, but wemight as well improve it.Per gripes from a number of people, most recently Greg Sabino Mullane.Back-patch to all supported branches.1 parent52579d5 commit14794f9
1 file changed
+26
-50
lines changedLines changed: 26 additions & 50 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1205 | 1205 |
| |
1206 | 1206 |
| |
1207 | 1207 |
| |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
| 1214 | + | |
| 1215 | + | |
| 1216 | + | |
| 1217 | + | |
| 1218 | + | |
| 1219 | + | |
| 1220 | + | |
| 1221 | + | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
1208 | 1226 |
| |
1209 | 1227 |
| |
1210 | 1228 |
| |
| |||
5577 | 5595 |
| |
5578 | 5596 |
| |
5579 | 5597 |
| |
5580 |
| - | |
| 5598 | + | |
| 5599 | + | |
5581 | 5600 |
| |
5582 | 5601 |
| |
5583 | 5602 |
| |
5584 | 5603 |
| |
5585 |
| - | |
| 5604 | + | |
5586 | 5605 |
| |
5587 | 5606 |
| |
5588 | 5607 |
| |
| |||
5591 | 5610 |
| |
5592 | 5611 |
| |
5593 | 5612 |
| |
| 5613 | + | |
| 5614 | + | |
| 5615 | + | |
5594 | 5616 |
| |
5595 | 5617 |
| |
5596 | 5618 |
| |
| |||
9225 | 9247 |
| |
9226 | 9248 |
| |
9227 | 9249 |
| |
9228 |
| - | |
9229 |
| - | |
9230 |
| - | |
9231 |
| - | |
9232 |
| - | |
9233 |
| - | |
9234 |
| - | |
| 9250 | + | |
| 9251 | + | |
9235 | 9252 |
| |
9236 |
| - | |
9237 |
| - | |
9238 |
| - | |
9239 |
| - | |
9240 |
| - | |
9241 |
| - | |
9242 |
| - | |
9243 |
| - | |
9244 |
| - | |
9245 |
| - | |
9246 |
| - | |
9247 |
| - | |
9248 |
| - | |
9249 |
| - | |
9250 |
| - | |
9251 |
| - | |
9252 |
| - | |
9253 |
| - | |
9254 |
| - | |
9255 |
| - | |
9256 |
| - | |
9257 |
| - | |
9258 |
| - | |
9259 |
| - | |
9260 |
| - | |
9261 |
| - | |
9262 |
| - | |
9263 |
| - | |
9264 |
| - | |
9265 |
| - | |
9266 |
| - | |
9267 |
| - | |
9268 |
| - | |
9269 |
| - | |
9270 |
| - | |
9271 |
| - | |
9272 |
| - | |
9273 |
| - | |
9274 |
| - | |
9275 |
| - | |
9276 |
| - | |
9277 | 9253 |
| |
9278 | 9254 |
| |
9279 | 9255 |
| |
|
0 commit comments
Comments
(0)