forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit97b6144
committed
Make postgres.bki use the same literal-string syntax as postgresql.conf.
The BKI file's string quoting conventions were previously quite weird,perhaps as a result of repurposing a function built to scansingle-quoted strings to scan double-quoted ones. Change to use thesame rules as we use in GUC files, allowing some simplifications ingenbki.pl and initdb.c.While at it, completely remove the backend's scanstr() function, whichwas essentially a duplicate of the string dequoting code in guc-file.l.Instead export that one (under a less generic name than it had) and letbootscanner.l use it. Now we can clarify that scansup.c exists only tosupport the main lexer. We could alternatively have removed GUC_scanstr,but this way seems better since the previous arrangement could misleada reader into thinking that scanstr() had something to do with the mainlexer's handling of string literals. Maybe it did once, but if so itwas a long time ago.This patch does not bump catversion, since the initially-installedcatalog contents don't change. Note however that successful initdbafter applying this patch will require up-to-date postgres.bki as wellas postgres and initdb executables.In passing, remove a bunch of very-long-obsolete #include's inbootparse.y and bootscanner.l.John NaylorDiscussion:https://postgr.es/m/CACPNZCtDpd18T0KATTmCggO2GdVC4ow86ypiq5ENff1VnauL8g@mail.gmail.com1 parent9081bdd commit97b6144
File tree
9 files changed
+31
-182
lines changed- doc/src/sgml
- src
- backend
- bootstrap
- catalog
- parser
- utils/misc
- bin/initdb
- include
- parser
- utils
9 files changed
+31
-182
lines changedLines changed: 6 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
752 | 752 |
| |
753 | 753 |
| |
754 | 754 |
| |
755 |
| - | |
756 |
| - | |
| 755 | + | |
| 756 | + | |
757 | 757 |
| |
758 | 758 |
| |
759 | 759 |
| |
| |||
876 | 876 |
| |
877 | 877 |
| |
878 | 878 |
| |
879 |
| - | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
880 | 882 |
| |
881 | 883 |
| |
882 | 884 |
| |
| |||
1046 | 1048 |
| |
1047 | 1049 |
| |
1048 | 1050 |
| |
1049 |
| - | |
| 1051 | + | |
1050 | 1052 |
| |
1051 | 1053 |
| |
1052 | 1054 |
| |
|
Lines changed: 0 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 |
| - | |
22 |
| - | |
23 |
| - | |
24 |
| - | |
25 | 21 |
| |
26 |
| - | |
27 | 22 |
| |
28 | 23 |
| |
29 | 24 |
| |
30 |
| - | |
31 | 25 |
| |
32 | 26 |
| |
33 | 27 |
| |
| |||
36 | 30 |
| |
37 | 31 |
| |
38 | 32 |
| |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 | 33 |
| |
52 |
| - | |
53 | 34 |
| |
54 | 35 |
| |
55 | 36 |
| |
|
Lines changed: 5 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
19 |
| - | |
20 |
| - | |
21 |
| - | |
22 | 18 |
| |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
| 19 | + | |
37 | 20 |
| |
38 | 21 |
| |
39 | 22 |
| |
| |||
66 | 49 |
| |
67 | 50 |
| |
68 | 51 |
| |
69 |
| - | |
| 52 | + | |
70 | 53 |
| |
71 | 54 |
| |
72 | 55 |
| |
| |||
120 | 103 |
| |
121 | 104 |
| |
122 | 105 |
| |
123 |
| - | |
| 106 | + | |
124 | 107 |
| |
125 | 108 |
| |
126 | 109 |
| |
127 |
| - | |
128 |
| - | |
129 |
| - | |
130 |
| - | |
| 110 | + | |
| 111 | + | |
131 | 112 |
| |
132 | 113 |
| |
133 | 114 |
| |
|
Lines changed: 2 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
845 | 845 |
| |
846 | 846 |
| |
847 | 847 |
| |
848 |
| - | |
849 |
| - | |
| 848 | + | |
850 | 849 |
| |
851 | 850 |
| |
852 | 851 |
| |
853 | 852 |
| |
854 |
| - | |
855 | 853 |
| |
856 | 854 |
| |
857 | 855 |
| |
858 |
| - | |
| 856 | + | |
859 | 857 |
| |
860 | 858 |
| |
861 | 859 |
| |
|
Lines changed: 1 addition & 94 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
5 |
| - | |
| 4 | + | |
6 | 5 |
| |
7 | 6 |
| |
8 | 7 |
| |
| |||
20 | 19 |
| |
21 | 20 |
| |
22 | 21 |
| |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 |
| - | |
27 |
| - | |
28 |
| - | |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 |
| - | |
58 |
| - | |
59 |
| - | |
60 |
| - | |
61 |
| - | |
62 |
| - | |
63 |
| - | |
64 |
| - | |
65 |
| - | |
66 |
| - | |
67 |
| - | |
68 |
| - | |
69 |
| - | |
70 |
| - | |
71 |
| - | |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
84 |
| - | |
85 |
| - | |
86 |
| - | |
87 |
| - | |
88 |
| - | |
89 |
| - | |
90 |
| - | |
91 |
| - | |
92 |
| - | |
93 |
| - | |
94 |
| - | |
95 |
| - | |
96 |
| - | |
97 |
| - | |
98 |
| - | |
99 |
| - | |
100 |
| - | |
101 |
| - | |
102 |
| - | |
103 |
| - | |
104 |
| - | |
105 |
| - | |
106 |
| - | |
107 |
| - | |
108 |
| - | |
109 |
| - | |
110 |
| - | |
111 |
| - | |
112 |
| - | |
113 |
| - | |
114 |
| - | |
115 | 22 |
| |
116 | 23 |
| |
117 | 24 |
| |
|
Lines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
59 | 58 |
| |
60 | 59 |
| |
61 | 60 |
| |
| |||
797 | 796 |
| |
798 | 797 |
| |
799 | 798 |
| |
800 |
| - | |
| 799 | + | |
801 | 800 |
| |
802 | 801 |
| |
803 | 802 |
| |
| |||
1132 | 1131 |
| |
1133 | 1132 |
| |
1134 | 1133 |
| |
1135 |
| - | |
| 1134 | + | |
1136 | 1135 |
| |
1137 | 1136 |
| |
1138 | 1137 |
| |
1139 | 1138 |
| |
1140 |
| - | |
| 1139 | + | |
1141 | 1140 |
| |
| 1141 | + | |
| 1142 | + | |
1142 | 1143 |
| |
1143 |
| - | |
1144 |
| - | |
| 1144 | + | |
| 1145 | + | |
1145 | 1146 |
| |
1146 | 1147 |
| |
1147 | 1148 |
| |
1148 | 1149 |
| |
1149 | 1150 |
| |
1150 | 1151 |
| |
| 1152 | + | |
1151 | 1153 |
| |
1152 | 1154 |
| |
1153 | 1155 |
| |
|
Lines changed: 7 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
331 | 331 |
| |
332 | 332 |
| |
333 | 333 |
| |
334 |
| - | |
335 |
| - | |
336 |
| - | |
337 |
| - | |
338 |
| - | |
339 |
| - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
340 | 337 |
| |
341 | 338 |
| |
342 | 339 |
| |
| |||
345 | 342 |
| |
346 | 343 |
| |
347 | 344 |
| |
348 |
| - | |
349 | 345 |
| |
350 |
| - | |
351 |
| - | |
352 |
| - | |
353 |
| - | |
354 |
| - | |
355 |
| - | |
356 |
| - | |
357 |
| - | |
358 |
| - | |
| 346 | + | |
359 | 347 |
| |
360 |
| - | |
| 348 | + | |
361 | 349 |
| |
362 |
| - | |
363 |
| - | |
364 |
| - | |
365 |
| - | |
366 |
| - | |
367 |
| - | |
368 |
| - | |
369 |
| - | |
370 |
| - | |
371 |
| - | |
| 350 | + | |
| 351 | + | |
372 | 352 |
| |
373 | 353 |
| |
374 | 354 |
| |
|
Lines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
5 |
| - | |
| 4 | + | |
6 | 5 |
| |
7 | 6 |
| |
8 | 7 |
| |
| |||
15 | 14 |
| |
16 | 15 |
| |
17 | 16 |
| |
18 |
| - | |
19 |
| - | |
20 | 17 |
| |
21 | 18 |
| |
22 | 19 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
155 | 155 |
| |
156 | 156 |
| |
157 | 157 |
| |
| 158 | + | |
158 | 159 |
| |
159 | 160 |
| |
160 | 161 |
| |
|
0 commit comments
Comments
(0)