forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit55d26ff
committed
Rationalize handling of single and double quotes in bootstrap data.
Change things around so that proper quoting of values interpolated intothe BKI data by initdb is the responsibility of initdb, not somethingwe half-heartedly handle by putting double quotes into the raw BKI data.(Note: experimentation shows that it still doesn't work to put a doublequote into the initial superuser username, but that's the fault ofinadequate quoting while interpolating the name into SQL scripts;the BKI aspect of it works fine now.)Having done that, we can remove the special-case handling of valuesthat look like "something" from genbki.pl, and instead teach it toescape double --- and single --- quotes properly. This removes thenowhere-documented need to treat those specially in the BKI sourcedata; whatever you write will be passed through unchanged into theinserted data value, modulo Perl's rules about single-quoted strings.Add documentation explaining the (pre-existing) handling of backslashesin the BKI data.Per an earlier discussion with John Naylor.Discussion:https://postgr.es/m/CAJVSVGUNao=-Q2-vAN3PYcdF5tnL5JAHwGwzZGuYHtq+Mk_9ng@mail.gmail.com1 parent9ffcccd commit55d26ff
File tree
6 files changed
+89
-38
lines changed- doc/src/sgml
- src
- backend/catalog
- bin/initdb
- include/catalog
6 files changed
+89
-38
lines changedLines changed: 12 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
184 | 184 |
| |
185 | 185 |
| |
186 | 186 |
| |
187 |
| - | |
188 |
| - | |
189 |
| - | |
| 187 | + | |
190 | 188 |
| |
191 | 189 |
| |
192 | 190 |
| |
193 |
| - | |
| 191 | + | |
194 | 192 |
| |
195 | 193 |
| |
196 | 194 |
| |
| |||
234 | 232 |
| |
235 | 233 |
| |
236 | 234 |
| |
237 |
| - | |
238 |
| - | |
239 |
| - | |
240 |
| - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
241 | 245 |
| |
242 | 246 |
| |
243 | 247 |
| |
| |||
247 | 251 |
| |
248 | 252 |
| |
249 | 253 |
| |
250 |
| - | |
251 |
| - | |
252 |
| - | |
253 |
| - | |
254 |
| - | |
255 |
| - | |
256 |
| - | |
257 |
| - | |
258 |
| - | |
259 | 254 |
| |
260 | 255 |
| |
261 | 256 |
| |
|
Lines changed: 10 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
660 | 660 |
| |
661 | 661 |
| |
662 | 662 |
| |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
663 | 671 |
| |
664 | 672 |
| |
665 | 673 |
| |
666 |
| - | |
667 |
| - | |
668 |
| - | |
| 674 | + | |
| 675 | + | |
669 | 676 |
| |
670 | 677 |
| |
671 | 678 |
| |
|
Lines changed: 59 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
265 | 265 |
| |
266 | 266 |
| |
267 | 267 |
| |
| 268 | + | |
268 | 269 |
| |
269 | 270 |
| |
270 | 271 |
| |
| |||
324 | 325 |
| |
325 | 326 |
| |
326 | 327 |
| |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
327 | 332 |
| |
328 | 333 |
| |
329 | 334 |
| |
| |||
337 | 342 |
| |
338 | 343 |
| |
339 | 344 |
| |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
340 | 391 |
| |
341 | 392 |
| |
342 | 393 |
| |
| |||
1368 | 1419 |
| |
1369 | 1420 |
| |
1370 | 1421 |
| |
1371 |
| - | |
| 1422 | + | |
| 1423 | + | |
1372 | 1424 |
| |
1373 |
| - | |
| 1425 | + | |
| 1426 | + | |
1374 | 1427 |
| |
1375 |
| - | |
| 1428 | + | |
| 1429 | + | |
1376 | 1430 |
| |
1377 |
| - | |
| 1431 | + | |
| 1432 | + | |
1378 | 1433 |
| |
1379 | 1434 |
| |
1380 | 1435 |
| |
|
Lines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 | 15 |
| |
19 | 16 |
| |
20 | 17 |
| |
21 | 18 |
| |
22 |
| - | |
| 19 | + | |
23 | 20 |
| |
24 | 21 |
| |
25 | 22 |
| |
|
Lines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
16 |
| - | |
17 |
| - | |
18 | 15 |
| |
19 | 16 |
| |
20 | 17 |
| |
21 |
| - | |
| 18 | + | |
22 | 19 |
| |
23 | 20 |
| |
24 | 21 |
| |
|
Lines changed: 6 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2417 | 2417 |
| |
2418 | 2418 |
| |
2419 | 2419 |
| |
2420 |
| - | |
| 2420 | + | |
2421 | 2421 |
| |
2422 | 2422 |
| |
2423 | 2423 |
| |
| |||
3483 | 3483 |
| |
3484 | 3484 |
| |
3485 | 3485 |
| |
3486 |
| - | |
| 3486 | + | |
3487 | 3487 |
| |
3488 | 3488 |
| |
3489 | 3489 |
| |
3490 |
| - | |
| 3490 | + | |
3491 | 3491 |
| |
3492 | 3492 |
| |
3493 | 3493 |
| |
| |||
6930 | 6930 |
| |
6931 | 6931 |
| |
6932 | 6932 |
| |
6933 |
| - | |
| 6933 | + | |
6934 | 6934 |
| |
6935 | 6935 |
| |
6936 | 6936 |
| |
| |||
8168 | 8168 |
| |
8169 | 8169 |
| |
8170 | 8170 |
| |
8171 |
| - | |
| 8171 | + | |
8172 | 8172 |
| |
8173 | 8173 |
| |
8174 | 8174 |
| |
| |||
8181 | 8181 |
| |
8182 | 8182 |
| |
8183 | 8183 |
| |
8184 |
| - | |
| 8184 | + | |
8185 | 8185 |
| |
8186 | 8186 |
| |
8187 | 8187 |
| |
|
0 commit comments
Comments
(0)