Commit 4b76778
committed
Fix REASSIGN OWNED for text search objects
Trying to reassign objects owned by a user that had text search
dictionaries or configurations used to fail with:
ERROR: unexpected classid 3600
or
ERROR: unexpected classid 3602
Fix by adding cases for those object types in a switch in pg_shdepend.c.
Both REASSIGN OWNED and text search objects go back all the way to 8.1,
so backpatch to all supported branches. In 9.3 the alter-owner code was
made generic, so the required change in recent branches is pretty
simple; however, for 9.2 and older ones we need some additional
reshuffling to enable specifying objects by OID rather than name.
Text search templates and parsers are not owned objects, so there's no
change required for them.
Per bug #9749 reported by Michal Novotný1 parent bae0b5c commit 4b76778
File tree
3 files changed
+82
-22
lines changed- src
- backend
- catalog
- commands
- include/commands
3 files changed
+82
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
1381 | 1383 | | |
1382 | 1384 | | |
1383 | 1385 | | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
1384 | 1394 | | |
1385 | 1395 | | |
1386 | 1396 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
843 | 843 | | |
844 | 844 | | |
845 | 845 | | |
846 | | - | |
| 846 | + | |
847 | 847 | | |
848 | | - | |
849 | | - | |
| 848 | + | |
| 849 | + | |
850 | 850 | | |
851 | 851 | | |
852 | | - | |
853 | | - | |
854 | 852 | | |
855 | 853 | | |
856 | 854 | | |
857 | 855 | | |
858 | | - | |
859 | | - | |
860 | | - | |
861 | | - | |
862 | 856 | | |
863 | 857 | | |
864 | 858 | | |
| |||
878 | 872 | | |
879 | 873 | | |
880 | 874 | | |
881 | | - | |
| 875 | + | |
882 | 876 | | |
883 | 877 | | |
884 | 878 | | |
| |||
900 | 894 | | |
901 | 895 | | |
902 | 896 | | |
903 | | - | |
904 | 897 | | |
905 | 898 | | |
906 | 899 | | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
907 | 932 | | |
908 | 933 | | |
909 | 934 | | |
| |||
1644 | 1669 | | |
1645 | 1670 | | |
1646 | 1671 | | |
1647 | | - | |
| 1672 | + | |
1648 | 1673 | | |
1649 | | - | |
1650 | | - | |
| 1674 | + | |
| 1675 | + | |
1651 | 1676 | | |
1652 | 1677 | | |
1653 | | - | |
1654 | | - | |
1655 | 1678 | | |
1656 | 1679 | | |
1657 | 1680 | | |
1658 | 1681 | | |
1659 | | - | |
1660 | | - | |
1661 | | - | |
1662 | | - | |
1663 | 1682 | | |
1664 | 1683 | | |
1665 | 1684 | | |
| |||
1679 | 1698 | | |
1680 | 1699 | | |
1681 | 1700 | | |
1682 | | - | |
| 1701 | + | |
1683 | 1702 | | |
1684 | 1703 | | |
1685 | 1704 | | |
| |||
1701 | 1720 | | |
1702 | 1721 | | |
1703 | 1722 | | |
1704 | | - | |
1705 | 1723 | | |
1706 | 1724 | | |
1707 | 1725 | | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
| 1753 | + | |
| 1754 | + | |
| 1755 | + | |
1708 | 1756 | | |
1709 | 1757 | | |
1710 | 1758 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| |||
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| |||
0 commit comments