- Notifications
You must be signed in to change notification settings - Fork5
Commit63fecc9
committed
Fix contrib/citext's upgrade script to handle array and domain cases.
We previously recognized that citext wouldn't get marked as collatableduring pg_upgrade from a pre-9.1 installation, and hacked itscreate-from-unpackaged script to manually perform the necessary catalogadjustments. However, we overlooked the fact that domains over citext,as well as the citext[] array type, need the same adjustments. Extendthe script to handle those cases.Also, the documentation suggested that this was only an issue in pg_upgradescenarios, which is quite wrong; loading any dump containing citext from apre-9.1 server will also result in the type being wrongly marked.I approached the documentation problem by changing the 9.1.2 release noteparagraphs about this issue, which is historically inaccurate. But itseems better than having the information scattered in multiple places, andleaving incorrect info in the 9.1.2 notes would be bad anyway. We'll stillneed to mention the issue again in the 9.1.4 notes, but perhaps they canjust reference 9.1.2 for fix instructions.Per report from Evan Carroll. Back-patch into 9.1.1 parent1331cc6 commit63fecc9
File tree
2 files changed
+89
-24
lines changed- contrib/citext
- doc/src/sgml
2 files changed
+89
-24
lines changedLines changed: 78 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
81 | 81 |
| |
82 | 82 |
| |
83 | 83 |
| |
84 |
| - | |
| 84 | + | |
| 85 | + | |
85 | 86 |
| |
86 | 87 |
| |
87 | 88 |
| |
88 | 89 |
| |
89 | 90 |
| |
90 | 91 |
| |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
91 | 96 |
| |
92 |
| - | |
| 97 | + | |
| 98 | + | |
93 | 99 |
| |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
94 | 104 |
| |
95 |
| - | |
| 105 | + | |
| 106 | + | |
96 | 107 |
| |
97 | 108 |
| |
98 |
| - | |
99 |
| - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
100 | 117 |
| |
101 | 118 |
| |
102 |
| - | |
103 |
| - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
104 | 127 |
| |
105 | 128 |
| |
106 |
| - | |
107 |
| - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
108 | 137 |
| |
109 | 138 |
| |
110 |
| - | |
111 |
| - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
112 | 147 |
| |
113 | 148 |
| |
114 |
| - | |
115 |
| - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
116 | 157 |
| |
117 | 158 |
| |
118 |
| - | |
119 |
| - | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
120 | 167 |
| |
121 | 168 |
| |
122 |
| - | |
123 |
| - | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
124 | 177 |
| |
125 | 178 |
| |
126 |
| - | |
127 |
| - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
128 | 187 |
| |
129 | 188 |
|
Lines changed: 11 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
667 | 667 |
| |
668 | 668 |
| |
669 | 669 |
| |
670 |
| - | |
671 |
| - | |
672 |
| - | |
673 |
| - | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
674 | 677 |
| |
675 | 678 |
| |
676 | 679 |
| |
| |||
717 | 720 |
| |
718 | 721 |
| |
719 | 722 |
| |
720 |
| - | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
721 | 726 |
| |
722 | 727 |
| |
723 | 728 |
| |
| |||
732 | 737 |
| |
733 | 738 |
| |
734 | 739 |
| |
| 740 | + | |
735 | 741 |
| |
736 | 742 |
| |
737 | 743 |
| |
|
0 commit comments
Comments
(0)