forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9194c42
committed
Avoid sometimes printing both tables and their columns in DROP CASCADE.
A cascaded drop might find independent reasons to drop both a tableand some column of the table (for instance, a schema drop might includedropping a data type used in some table in the schema). Depending onthe order of visitation of pg_depend entries, we might report thetable column and the whole table as separate objects-to-be-dropped,or we might only report the table. This is confusing and leads tounstable regression test output, so fix it to report only the tableregardless of visitation order.Per gripe from Peter Geoghegan. This is just cosmetic from a user'sstandpoint, and we haven't actually seen regression test problems inpractice (yet), so I'll refrain from back-patching.Discussion:https://postgr.es/m/15908.1547762076@sss.pgh.pa.us1 parentf04ad77 commit9194c42
1 file changed
+14
-2
lines changedLines changed: 14 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
| 105 | + | |
105 | 106 |
| |
106 | 107 |
| |
107 | 108 |
| |
| |||
886 | 887 |
| |
887 | 888 |
| |
888 | 889 |
| |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
889 | 894 |
| |
890 | 895 |
| |
891 | 896 |
| |
| |||
2320 | 2325 |
| |
2321 | 2326 |
| |
2322 | 2327 |
| |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
2323 | 2333 |
| |
2324 | 2334 |
| |
2325 | 2335 |
| |
2326 | 2336 |
| |
2327 | 2337 |
| |
2328 | 2338 |
| |
2329 |
| - | |
| 2339 | + | |
| 2340 | + | |
2330 | 2341 |
| |
2331 | 2342 |
| |
2332 | 2343 |
| |
| |||
2374 | 2385 |
| |
2375 | 2386 |
| |
2376 | 2387 |
| |
2377 |
| - | |
| 2388 | + | |
| 2389 | + | |
2378 | 2390 |
| |
2379 | 2391 |
| |
2380 | 2392 |
| |
|
0 commit comments
Comments
(0)