- Notifications
You must be signed in to change notification settings - Fork5
Commit3d2b31e
committed
Fix brin_summarize_new_values() to check index type and ownership.
brin_summarize_new_values() did not check that the passed OID was foran index at all, much less that it was a BRIN index, and would fail inobscure ways if it wasn't (possibly damaging data first?). It alsolacked any permissions test; by analogy to VACUUM, we should only allowthe table's owner to summarize.Noted by Jeff Janes, fix by Michael Paquier and me1 parent8014c44 commit3d2b31e
3 files changed
+55
-3
lines changedLines changed: 39 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
787 | 787 |
| |
788 | 788 |
| |
789 | 789 |
| |
| 790 | + | |
790 | 791 |
| |
791 | 792 |
| |
792 | 793 |
| |
793 | 794 |
| |
794 |
| - | |
795 |
| - | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
796 | 807 |
| |
797 | 808 |
| |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
798 | 834 |
| |
799 | 835 |
| |
800 | 836 |
| |
| |||
962 | 998 |
| |
963 | 999 |
| |
964 | 1000 |
| |
965 |
| - | |
| 1001 | + | |
966 | 1002 |
| |
967 | 1003 |
| |
968 | 1004 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
407 | 407 |
| |
408 | 408 |
| |
409 | 409 |
| |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + |
Lines changed: 5 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
416 | 416 |
| |
417 | 417 |
| |
418 | 418 |
| |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + |
0 commit comments
Comments
(0)