forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb15a6da
committed
Get rid of any toast table when converting a table to a view.
Also make sure other fields of the view's pg_class entry are appropriatefor a view; it shouldn't have relfrozenxid set for instance.This ancient omission isn't believed to have any serious consequences inversions 8.4-9.2, so no backpatch. But let's fix it before it does biteus in some serious way. It's just luck that the case doesn't causeproblems for autovacuum. (It did cause problems in 8.3, but that's outof support.)Andres Freund1 parent2b78d10 commitb15a6da
File tree
5 files changed
+101
-21
lines changed- src
- backend/rewrite
- include/rewrite
- test/regress
- expected
- sql
5 files changed
+101
-21
lines changedLines changed: 87 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 |
| |
20 | 23 |
| |
21 | 24 |
| |
| |||
409 | 412 |
| |
410 | 413 |
| |
411 | 414 |
| |
412 |
| - | |
| 415 | + | |
413 | 416 |
| |
414 | 417 |
| |
415 | 418 |
| |
| |||
500 | 503 |
| |
501 | 504 |
| |
502 | 505 |
| |
503 |
| - | |
504 |
| - | |
505 |
| - | |
| 506 | + | |
506 | 507 |
| |
507 | 508 |
| |
508 | 509 |
| |
509 | 510 |
| |
510 | 511 |
| |
511 |
| - | |
| 512 | + | |
512 | 513 |
| |
513 | 514 |
| |
514 |
| - | |
515 |
| - | |
516 |
| - | |
517 |
| - | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
518 | 524 |
| |
519 | 525 |
| |
520 |
| - | |
521 |
| - | |
| 526 | + | |
522 | 527 |
| |
523 | 528 |
| |
524 | 529 |
| |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
525 | 539 |
| |
526 | 540 |
| |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
527 | 603 |
| |
528 | 604 |
| |
529 | 605 |
| |
|
Lines changed: 3 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
41 | 41 |
| |
42 | 42 |
| |
43 | 43 |
| |
44 |
| - | |
45 |
| - | |
| 44 | + | |
46 | 45 |
| |
47 | 46 |
| |
48 | 47 |
| |
| |||
53 | 52 |
| |
54 | 53 |
| |
55 | 54 |
| |
56 |
| - | |
57 |
| - | |
| 55 | + | |
58 | 56 |
| |
59 | 57 |
| |
60 | 58 |
| |
| |||
69 | 67 |
| |
70 | 68 |
| |
71 | 69 |
| |
72 |
| - | |
73 |
| - | |
| 70 | + | |
74 | 71 |
| |
75 | 72 |
| |
76 | 73 |
| |
77 |
| - | |
78 |
| - | |
79 | 74 |
| |
80 | 75 |
| |
81 | 76 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 |
| - | |
23 |
| - | |
| 22 | + | |
24 | 23 |
| |
25 | 24 |
| |
26 | 25 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2327 | 2327 |
| |
2328 | 2328 |
| |
2329 | 2329 |
| |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
2330 | 2337 |
| |
2331 | 2338 |
| |
2332 | 2339 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
872 | 872 |
| |
873 | 873 |
| |
874 | 874 |
| |
| 875 | + | |
| 876 | + | |
| 877 | + | |
875 | 878 |
| |
876 | 879 |
| |
877 | 880 |
| |
|
0 commit comments
Comments
(0)