Commit a41dc73
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 8ebf5f7 commit a41dc73
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 | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
42 | 44 | | |
| |||
1405 | 1407 | | |
1406 | 1408 | | |
1407 | 1409 | | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
1408 | 1418 | | |
1409 | 1419 | | |
1410 | 1420 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
942 | 942 | | |
943 | 943 | | |
944 | 944 | | |
945 | | - | |
| 945 | + | |
946 | 946 | | |
947 | | - | |
948 | | - | |
| 947 | + | |
| 948 | + | |
949 | 949 | | |
950 | 950 | | |
951 | | - | |
952 | | - | |
953 | 951 | | |
954 | 952 | | |
955 | 953 | | |
956 | 954 | | |
957 | | - | |
958 | | - | |
959 | | - | |
960 | | - | |
961 | 955 | | |
962 | 956 | | |
963 | 957 | | |
| |||
975 | 969 | | |
976 | 970 | | |
977 | 971 | | |
978 | | - | |
| 972 | + | |
979 | 973 | | |
980 | 974 | | |
981 | 975 | | |
| |||
997 | 991 | | |
998 | 992 | | |
999 | 993 | | |
1000 | | - | |
1001 | 994 | | |
1002 | 995 | | |
1003 | 996 | | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
1004 | 1029 | | |
1005 | 1030 | | |
1006 | 1031 | | |
| |||
1833 | 1858 | | |
1834 | 1859 | | |
1835 | 1860 | | |
1836 | | - | |
| 1861 | + | |
1837 | 1862 | | |
1838 | | - | |
1839 | | - | |
| 1863 | + | |
| 1864 | + | |
1840 | 1865 | | |
1841 | 1866 | | |
1842 | | - | |
1843 | | - | |
1844 | 1867 | | |
1845 | 1868 | | |
1846 | 1869 | | |
1847 | 1870 | | |
1848 | | - | |
1849 | | - | |
1850 | | - | |
1851 | | - | |
1852 | 1871 | | |
1853 | 1872 | | |
1854 | 1873 | | |
| |||
1866 | 1885 | | |
1867 | 1886 | | |
1868 | 1887 | | |
1869 | | - | |
| 1888 | + | |
1870 | 1889 | | |
1871 | 1890 | | |
1872 | 1891 | | |
| |||
1888 | 1907 | | |
1889 | 1908 | | |
1890 | 1909 | | |
1891 | | - | |
1892 | 1910 | | |
1893 | 1911 | | |
1894 | 1912 | | |
| 1913 | + | |
| 1914 | + | |
| 1915 | + | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
| 1919 | + | |
| 1920 | + | |
| 1921 | + | |
| 1922 | + | |
| 1923 | + | |
| 1924 | + | |
| 1925 | + | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
| 1930 | + | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
| 1934 | + | |
| 1935 | + | |
| 1936 | + | |
| 1937 | + | |
| 1938 | + | |
| 1939 | + | |
| 1940 | + | |
| 1941 | + | |
| 1942 | + | |
1895 | 1943 | | |
1896 | 1944 | | |
1897 | 1945 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| |||
141 | 142 | | |
142 | 143 | | |
143 | 144 | | |
| 145 | + | |
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
| |||
0 commit comments