forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbbfdf71
committed
Fix bug in translate_col_privs_multilevel
Fix incorrect code which was trying to convert a Bitmapset of columns atthe attnums according to a parent table and transform them into theequivalent Bitmapset with same attnums according to the given child table.This code is new as ofa61b1f7 and was failing to do the correcttranslation when there was an intermediate parent table between 'rel' and'top_parent_rel'.Reported-by: Ranier VilelaAuthor: Richard Guo, Amit LangoteDiscussion:https://postgr.es/m/CAEudQArohfB_Gy%2BhcH2-bANUkxgjJiP%3DABq01_LgTNTbcNijag%40mail.gmail.com1 parentb5d0f8e commitbbfdf71
File tree
3 files changed
+68
-13
lines changed- contrib/postgres_fdw
- expected
- sql
- src/backend/optimizer/util
3 files changed
+68
-13
lines changedLines changed: 36 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6768 | 6768 |
| |
6769 | 6769 |
| |
6770 | 6770 |
| |
| 6771 | + | |
| 6772 | + | |
| 6773 | + | |
| 6774 | + | |
| 6775 | + | |
| 6776 | + | |
| 6777 | + | |
| 6778 | + | |
| 6779 | + | |
| 6780 | + | |
| 6781 | + | |
| 6782 | + | |
| 6783 | + | |
| 6784 | + | |
| 6785 | + | |
| 6786 | + | |
| 6787 | + | |
| 6788 | + | |
| 6789 | + | |
| 6790 | + | |
| 6791 | + | |
| 6792 | + | |
| 6793 | + | |
| 6794 | + | |
| 6795 | + | |
| 6796 | + | |
| 6797 | + | |
| 6798 | + | |
| 6799 | + | |
| 6800 | + | |
| 6801 | + | |
| 6802 | + | |
| 6803 | + | |
| 6804 | + | |
| 6805 | + | |
| 6806 | + | |
6771 | 6807 |
| |
6772 | 6808 |
| |
6773 | 6809 |
| |
|
Lines changed: 23 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1580 | 1580 |
| |
1581 | 1581 |
| |
1582 | 1582 |
| |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
1583 | 1606 |
| |
1584 | 1607 |
| |
1585 | 1608 |
| |
|
Lines changed: 9 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 |
| - | |
| 55 | + | |
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
| |||
923 | 923 |
| |
924 | 924 |
| |
925 | 925 |
| |
926 |
| - | |
927 |
| - | |
928 |
| - | |
| 926 | + | |
| 927 | + | |
929 | 928 |
| |
930 | 929 |
| |
931 | 930 |
| |
932 | 931 |
| |
933 |
| - | |
| 932 | + | |
934 | 933 |
| |
935 |
| - | |
936 | 934 |
| |
937 | 935 |
| |
938 |
| - | |
| 936 | + | |
939 | 937 |
| |
940 | 938 |
| |
941 | 939 |
| |
942 | 940 |
| |
943 | 941 |
| |
944 | 942 |
| |
945 |
| - | |
946 |
| - | |
947 |
| - | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
948 | 946 |
| |
949 | 947 |
| |
950 | 948 |
| |
| |||
953 | 951 |
| |
954 | 952 |
| |
955 | 953 |
| |
956 |
| - | |
957 |
| - | |
958 |
| - | |
| 954 | + | |
959 | 955 |
|
0 commit comments
Comments
(0)