forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9ffcccd
committed
Rationalize handling of array type names in bootstrap data.
Formerly, Catalog.pm turned a C array type declaration in the catalogheader files into a SQL type, e.g., 'foo[]'. Along the way, genbki.plturned this into '_foo' for the purpose of type lookups, but wrote 'foo[]'to postgres.bki. During bootstrap, bootscanner.l had to have a specialcase rule to tokenize this, and then MapArrayTypeName() would turn 'foo[]'into '_foo' one more time.This seems unnecessarily complicated, especially since nobody cares thatmuch about the readability of postgres.bki. Instead, make Catalog.pmconvert the C declaration into '_foo' to start with, and preserve thatrepresentation of the type name throughout bootstrap data processing.Then rip out the special-case code in bootscanner.l and bootstrap.c.This changes postgres.bki to the extent that array fields are nowdeclared like proconfig = _text ,rather than proconfig = text[] ,No documentation update, since the SGML docs didn't mention any of thisin the first place, and it's all pretty transparent to writers ofcatalog header files anyway.John NaylorDiscussion:https://postgr.es/m/CAJVSVGUNao=-Q2-vAN3PYcdF5tnL5JAHwGwzZGuYHtq+Mk_9ng@mail.gmail.com1 parente90d4dd commit9ffcccd
File tree
5 files changed
+8
-46
lines changed- src
- backend
- bootstrap
- catalog
- include/bootstrap
5 files changed
+8
-46
lines changedLines changed: 0 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
68 |
| - | |
69 | 68 |
| |
70 | 69 |
| |
71 |
| - | |
72 | 70 |
| |
73 | 71 |
| |
74 | 72 |
| |
| |||
111 | 109 |
| |
112 | 110 |
| |
113 | 111 |
| |
114 |
| - | |
115 |
| - | |
116 |
| - | |
117 |
| - | |
118 | 112 |
| |
119 | 113 |
| |
120 | 114 |
| |
|
Lines changed: 0 additions & 30 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1036 | 1036 |
| |
1037 | 1037 |
| |
1038 | 1038 |
| |
1039 |
| - | |
1040 |
| - | |
1041 |
| - | |
1042 |
| - | |
1043 |
| - | |
1044 |
| - | |
1045 |
| - | |
1046 |
| - | |
1047 |
| - | |
1048 |
| - | |
1049 |
| - | |
1050 |
| - | |
1051 |
| - | |
1052 |
| - | |
1053 |
| - | |
1054 |
| - | |
1055 |
| - | |
1056 |
| - | |
1057 |
| - | |
1058 |
| - | |
1059 |
| - | |
1060 |
| - | |
1061 |
| - | |
1062 |
| - | |
1063 |
| - | |
1064 |
| - | |
1065 |
| - | |
1066 |
| - | |
1067 |
| - | |
1068 |
| - | |
1069 | 1039 |
| |
1070 | 1040 |
| |
1071 | 1041 |
| |
|
Lines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
161 | 161 |
| |
162 | 162 |
| |
163 | 163 |
| |
164 |
| - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
165 | 169 |
| |
166 | 170 |
| |
167 |
| - | |
| 171 | + | |
168 | 172 |
| |
169 | 173 |
| |
170 | 174 |
| |
|
Lines changed: 2 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
351 | 351 |
| |
352 | 352 |
| |
353 | 353 |
| |
354 |
| - | |
| 354 | + | |
355 | 355 |
| |
356 | 356 |
| |
357 | 357 |
| |
| |||
369 | 369 |
| |
370 | 370 |
| |
371 | 371 |
| |
372 |
| - | |
| 372 | + | |
373 | 373 |
| |
374 | 374 |
| |
375 | 375 |
| |
| |||
598 | 598 |
| |
599 | 599 |
| |
600 | 600 |
| |
601 |
| - | |
602 |
| - | |
603 |
| - | |
604 |
| - | |
605 | 601 |
| |
606 | 602 |
| |
607 | 603 |
| |
|
Lines changed: 0 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
47 |
| - | |
48 |
| - | |
49 | 47 |
| |
50 | 48 |
| |
51 | 49 |
| |
|
0 commit comments
Comments
(0)