forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitef387be
committed
Fix bogus collation-version-recording logic.
recordMultipleDependencies had the wrong scope for its "version"variable, allowing a version label to leak from the collation entry itwas meant for to subsequent non-collation entries. This is relativelyhard to trigger because of the OID-descending order that the inputswill normally arrive in: subsequent non-collation items will tend tobe pinned. But it can be exhibited easily with a custom collation.Also, don't special-case the default collation, but instead ignorepinned-ness of a collation when we've found a version for it. Thisavoids creating useless pg_depend entries, and removes a not-very-future-proof assumption that C, POSIX, and DEFAULT are the onlypinned collations.A small problem is that, because the default collation may or maynot have a version, the regression tests can't assume anything aboutwhether dependency entries will be made for it. This seems OK thoughsince it's now handled just the same as other collations, and we havetest cases for both versioned and unversioned collations.Fixes oversights in commit257836a. Thanks to Julien Rouhaudfor review.Discussion:https://postgr.es/m/3564817.1618420687@sss.pgh.pa.us1 parentf90c708 commitef387be
File tree
3 files changed
+10
-24
lines changed- src
- backend/catalog
- test/regress
- expected
- sql
3 files changed
+10
-24
lines changedLines changed: 3 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
76 |
| - | |
77 | 76 |
| |
78 | 77 |
| |
79 | 78 |
| |
| |||
104 | 103 |
| |
105 | 104 |
| |
106 | 105 |
| |
107 |
| - | |
| 106 | + | |
108 | 107 |
| |
109 | 108 |
| |
110 | 109 |
| |
111 | 110 |
| |
112 | 111 |
| |
113 | 112 |
| |
114 |
| - | |
| 113 | + | |
115 | 114 |
| |
116 | 115 |
| |
117 | 116 |
| |
118 | 117 |
| |
119 | 118 |
| |
120 | 119 |
| |
121 |
| - | |
122 |
| - | |
123 |
| - | |
124 |
| - | |
125 |
| - | |
126 |
| - | |
127 |
| - | |
128 | 120 |
| |
129 | 121 |
| |
130 |
| - | |
131 |
| - | |
132 | 122 |
| |
133 | 123 |
| |
134 | 124 |
| |
135 | 125 |
| |
136 | 126 |
| |
137 | 127 |
| |
138 | 128 |
| |
139 |
| - | |
| 129 | + | |
140 | 130 |
| |
141 | 131 |
| |
142 | 132 |
| |
|
Lines changed: 5 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2026 | 2026 |
| |
2027 | 2027 |
| |
2028 | 2028 |
| |
2029 |
| - | |
| 2029 | + | |
2030 | 2030 |
| |
2031 | 2031 |
| |
2032 |
| - | |
| 2032 | + | |
2033 | 2033 |
| |
2034 | 2034 |
| |
2035 | 2035 |
| |
| |||
2069 | 2069 |
| |
2070 | 2070 |
| |
2071 | 2071 |
| |
2072 |
| - | |
2073 | 2072 |
| |
2074 | 2073 |
| |
2075 | 2074 |
| |
2076 |
| - | |
2077 | 2075 |
| |
2078 | 2076 |
| |
2079 | 2077 |
| |
2080 | 2078 |
| |
2081 |
| - | |
| 2079 | + | |
2082 | 2080 |
| |
2083 | 2081 |
| |
2084 | 2082 |
| |
| |||
2098 | 2096 |
| |
2099 | 2097 |
| |
2100 | 2098 |
| |
2101 |
| - | |
2102 | 2099 |
| |
2103 | 2100 |
| |
2104 | 2101 |
| |
2105 |
| - | |
2106 | 2102 |
| |
2107 | 2103 |
| |
2108 | 2104 |
| |
2109 | 2105 |
| |
2110 |
| - | |
| 2106 | + | |
2111 | 2107 |
| |
2112 | 2108 |
| |
2113 | 2109 |
| |
| |||
2487 | 2483 |
| |
2488 | 2484 |
| |
2489 | 2485 |
| |
2490 |
| - | |
| 2486 | + | |
2491 | 2487 |
| |
2492 | 2488 |
| |
2493 | 2489 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
797 | 797 |
| |
798 | 798 |
| |
799 | 799 |
| |
800 |
| - | |
| 800 | + | |
801 | 801 |
| |
802 | 802 |
| |
803 |
| - | |
| 803 | + | |
804 | 804 |
| |
805 | 805 |
| |
806 | 806 |
| |
|
0 commit comments
Comments
(0)