forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0ab1a2e
committed
Remove dead encoding-conversion functions.
The code for conversions SQL_ASCII <-> MULE_INTERNAL andSQL_ASCII <-> UTF8 was unreachable, because we long ago changedthe wrapper functions pg_do_encoding_conversion() et al so thatthey have hard-wired behaviors for conversions involving SQL_ASCII.(At least some of those fast paths date back to 2002, though itlooks like we may not have been totally consistent about this untillater.) Given the lack of complaints, nobody is dissatisfied withthis state of affairs. Hence, let's just remove the unreachable code.Also, change CREATE CONVERSION so that it rejects attempts todefine such conversions. Since we consider that SQL_ASCII representslack of knowledge about the encoding in use, such a conversion wouldbe semantically dubious even if it were reachable.Adjust a couple of regression test cases that had randomly decidedto rely on these conversion functions rather than any other ones.Discussion:https://postgr.es/m/41163.1559156593@sss.pgh.pa.us1 parentef777cb commit0ab1a2e
File tree
18 files changed
+44
-269
lines changed- doc/src/sgml
- ref
- src
- backend
- commands
- utils/mb
- conversion_procs
- ascii_and_mic
- utf8_and_ascii
- include
- catalog
- mb
- test/regress
- expected
- sql
18 files changed
+44
-269
lines changedLines changed: 5 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1896 | 1896 |
| |
1897 | 1897 |
| |
1898 | 1898 |
| |
1899 |
| - | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
| 1902 | + | |
| 1903 | + | |
1900 | 1904 |
| |
1901 | 1905 |
| |
1902 | 1906 |
| |
|
Lines changed: 0 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2496 | 2496 |
| |
2497 | 2497 |
| |
2498 | 2498 |
| |
2499 |
| - | |
2500 |
| - | |
2501 |
| - | |
2502 |
| - | |
2503 |
| - | |
2504 |
| - | |
2505 |
| - | |
2506 |
| - | |
2507 |
| - | |
2508 |
| - | |
2509 |
| - | |
2510 |
| - | |
2511 | 2499 |
| |
2512 | 2500 |
| |
2513 | 2501 |
| |
| |||
2778 | 2766 |
| |
2779 | 2767 |
| |
2780 | 2768 |
| |
2781 |
| - | |
2782 |
| - | |
2783 |
| - | |
2784 |
| - | |
2785 |
| - | |
2786 |
| - | |
2787 | 2769 |
| |
2788 | 2770 |
| |
2789 | 2771 |
| |
| |||
2904 | 2886 |
| |
2905 | 2887 |
| |
2906 | 2888 |
| |
2907 |
| - | |
2908 |
| - | |
2909 |
| - | |
2910 |
| - | |
2911 |
| - | |
2912 |
| - | |
2913 | 2889 |
| |
2914 | 2890 |
| |
2915 | 2891 |
| |
|
Lines changed: 16 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 |
| |
38 | 41 |
| |
39 | 42 |
| |
| |||
122 | 125 |
| |
123 | 126 |
| |
124 | 127 |
| |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
125 | 135 |
| |
126 | 136 |
| |
127 | 137 |
| |
|
Lines changed: 12 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
75 | 87 |
| |
76 | 88 |
| |
77 | 89 |
| |
|
Lines changed: 0 additions & 45 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
132 | 132 |
| |
133 | 133 |
| |
134 | 134 |
| |
135 |
| - | |
136 |
| - | |
137 |
| - | |
138 |
| - | |
139 |
| - | |
140 |
| - | |
141 |
| - | |
142 |
| - | |
143 |
| - | |
144 |
| - | |
145 |
| - | |
146 |
| - | |
147 |
| - | |
148 |
| - | |
149 |
| - | |
150 |
| - | |
151 |
| - | |
152 |
| - | |
153 |
| - | |
154 |
| - | |
155 |
| - | |
156 |
| - | |
157 |
| - | |
158 |
| - | |
159 |
| - | |
160 |
| - | |
161 |
| - | |
162 |
| - | |
163 |
| - | |
164 |
| - | |
165 |
| - | |
166 |
| - | |
167 |
| - | |
168 |
| - | |
169 |
| - | |
170 |
| - | |
171 |
| - | |
172 |
| - | |
173 |
| - | |
174 |
| - | |
175 |
| - | |
176 |
| - | |
177 |
| - | |
178 |
| - | |
179 |
| - | |
180 | 135 |
| |
181 | 136 |
| |
182 | 137 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 |
| - | |
| 19 | + | |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
|
Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 0 additions & 60 deletions
This file was deleted.
Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 0 additions & 62 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
56 |
| - | |
| 56 | + | |
57 | 57 |
| |
58 | 58 |
|
Lines changed: 0 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 | 18 |
| |
25 | 19 |
| |
26 | 20 |
| |
| |||
165 | 159 |
| |
166 | 160 |
| |
167 | 161 |
| |
168 |
| - | |
169 |
| - | |
170 |
| - | |
171 |
| - | |
172 |
| - | |
173 |
| - | |
174 | 162 |
| |
175 | 163 |
| |
176 | 164 |
| |
|
Lines changed: 0 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10082 | 10082 |
| |
10083 | 10083 |
| |
10084 | 10084 |
| |
10085 |
| - | |
10086 |
| - | |
10087 |
| - | |
10088 |
| - | |
10089 |
| - | |
10090 |
| - | |
10091 |
| - | |
10092 |
| - | |
10093 |
| - | |
10094 |
| - | |
10095 | 10085 |
| |
10096 | 10086 |
| |
10097 | 10087 |
| |
| |||
10324 | 10314 |
| |
10325 | 10315 |
| |
10326 | 10316 |
| |
10327 |
| - | |
10328 |
| - | |
10329 |
| - | |
10330 |
| - | |
10331 |
| - | |
10332 |
| - | |
10333 |
| - | |
10334 |
| - | |
10335 |
| - | |
10336 |
| - | |
10337 | 10317 |
| |
10338 | 10318 |
| |
10339 | 10319 |
| |
|
0 commit comments
Comments
(0)