forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0bd11d9
committed
Add comments warning against generalizing default_with_oids.
pg_dump has historically assumed that default_with_oids affects only plaintables and not other relkinds. Conceivably we could make it apply to somenewly invented relkind if we did so from the get-go, but changing thebehavior for existing object types will break existing dump scripts.Add code comments warning about this interaction.Also, make sure that default_with_oids doesn't cause parse_utilcmd.c tothink that CREATE FOREIGN TABLE will create an OID column. I think this isonly a latent bug right now, since we don't allow UNIQUE/PKEY constraintsin CREATE FOREIGN TABLE, but it's better to be consistent and future-proof.1 parent04f1542 commit0bd11d9
2 files changed
+20
-1
lines changedLines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
579 | 579 |
| |
580 | 580 |
| |
581 | 581 |
| |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
582 | 590 |
| |
583 | 591 |
| |
584 | 592 |
| |
|
Lines changed: 12 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
222 | 222 |
| |
223 | 223 |
| |
224 | 224 |
| |
225 |
| - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
226 | 237 |
| |
227 | 238 |
| |
228 | 239 |
| |
|
0 commit comments
Comments
(0)