forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite4fca46
committed
Include ALTER INDEX SET STATISTICS in pg_dump
The new grammar pattern of ALTER INDEX SET STATISTICS able to use columnnumbers on top of the existing column names introduced by commit5b6d13eforgot to add support for the feature in pg_dump, so defining statisticson index columns was missing from the dumps, potentially causing silentplanning problems with a subsequent restore.pg_dump ought to not use column names in what it generates as these areautomatically generated by the server and could conflict with realrelation attributes with matching patterns. "expr" and "exprN", Nincremented automatically after the creation of the first one, are usedas default attribute names for index expressions, and that could easilymatch what is defined in other relations, causing the dumps to fail ifsome of those attributes are renamed at some point. So to avoid anyproblems, the new grammar with column numbers gets used.Reported-by: Ronan DunklauAuthor: Michael PaquierReviewed-by: Tom Lane, Adrien Nayrat, Amul SulDiscussion:https://postgr.es/m/CAARsnT3UQ4V=yDNW468w8RqHfYiY9mpn2r_c5UkBJ97NAApUEw@mail.gmail.comBackpatch-through: 11, where the new syntax has been introduced.1 parentcc92cca commite4fca46
3 files changed
+90
-6
lines changedLines changed: 66 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6712 | 6712 |
| |
6713 | 6713 |
| |
6714 | 6714 |
| |
6715 |
| - | |
| 6715 | + | |
| 6716 | + | |
| 6717 | + | |
6716 | 6718 |
| |
6717 | 6719 |
| |
6718 | 6720 |
| |
| |||
6766 | 6768 |
| |
6767 | 6769 |
| |
6768 | 6770 |
| |
6769 |
| - | |
| 6771 | + | |
| 6772 | + | |
| 6773 | + | |
| 6774 | + | |
| 6775 | + | |
| 6776 | + | |
| 6777 | + | |
| 6778 | + | |
| 6779 | + | |
6770 | 6780 |
| |
6771 | 6781 |
| |
6772 | 6782 |
| |
| |||
6803 | 6813 |
| |
6804 | 6814 |
| |
6805 | 6815 |
| |
6806 |
| - | |
| 6816 | + | |
| 6817 | + | |
| 6818 | + | |
6807 | 6819 |
| |
6808 | 6820 |
| |
6809 | 6821 |
| |
| |||
6836 | 6848 |
| |
6837 | 6849 |
| |
6838 | 6850 |
| |
6839 |
| - | |
| 6851 | + | |
| 6852 | + | |
| 6853 | + | |
6840 | 6854 |
| |
6841 | 6855 |
| |
6842 | 6856 |
| |
| |||
6865 | 6879 |
| |
6866 | 6880 |
| |
6867 | 6881 |
| |
6868 |
| - | |
| 6882 | + | |
| 6883 | + | |
| 6884 | + | |
6869 | 6885 |
| |
6870 | 6886 |
| |
6871 | 6887 |
| |
| |||
6897 | 6913 |
| |
6898 | 6914 |
| |
6899 | 6915 |
| |
6900 |
| - | |
| 6916 | + | |
| 6917 | + | |
| 6918 | + | |
6901 | 6919 |
| |
6902 | 6920 |
| |
6903 | 6921 |
| |
| |||
6935 | 6953 |
| |
6936 | 6954 |
| |
6937 | 6955 |
| |
| 6956 | + | |
| 6957 | + | |
6938 | 6958 |
| |
6939 | 6959 |
| |
6940 | 6960 |
| |
| |||
6958 | 6978 |
| |
6959 | 6979 |
| |
6960 | 6980 |
| |
| 6981 | + | |
| 6982 | + | |
6961 | 6983 |
| |
6962 | 6984 |
| |
6963 | 6985 |
| |
| |||
16148 | 16170 |
| |
16149 | 16171 |
| |
16150 | 16172 |
| |
| 16173 | + | |
| 16174 | + | |
| 16175 | + | |
| 16176 | + | |
| 16177 | + | |
| 16178 | + | |
| 16179 | + | |
16151 | 16180 |
| |
16152 | 16181 |
| |
16153 | 16182 |
| |
| |||
16171 | 16200 |
| |
16172 | 16201 |
| |
16173 | 16202 |
| |
| 16203 | + | |
| 16204 | + | |
| 16205 | + | |
| 16206 | + | |
| 16207 | + | |
| 16208 | + | |
| 16209 | + | |
| 16210 | + | |
| 16211 | + | |
| 16212 | + | |
| 16213 | + | |
| 16214 | + | |
| 16215 | + | |
| 16216 | + | |
| 16217 | + | |
| 16218 | + | |
| 16219 | + | |
| 16220 | + | |
| 16221 | + | |
| 16222 | + | |
| 16223 | + | |
| 16224 | + | |
| 16225 | + | |
| 16226 | + | |
| 16227 | + | |
| 16228 | + | |
16174 | 16229 |
| |
16175 | 16230 |
| |
16176 | 16231 |
| |
| |||
16194 | 16249 |
| |
16195 | 16250 |
| |
16196 | 16251 |
| |
| 16252 | + | |
| 16253 | + | |
| 16254 | + | |
| 16255 | + | |
| 16256 | + | |
16197 | 16257 |
| |
16198 | 16258 |
| |
16199 | 16259 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
360 | 360 |
| |
361 | 361 |
| |
362 | 362 |
| |
| 363 | + | |
| 364 | + | |
363 | 365 |
| |
364 | 366 |
| |
365 | 367 |
| |
|
Lines changed: 22 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2343 | 2343 |
| |
2344 | 2344 |
| |
2345 | 2345 |
| |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
2346 | 2368 |
| |
2347 | 2369 |
| |
2348 | 2370 |
| |
|
0 commit comments
Comments
(0)