- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit2ae54ae
committed
Specify the encoding of input to fmtId()
This commit adds fmtIdEnc() and fmtQualifiedIdEnc(), which allow to specifythe encoding as an explicit argument. Additionally setFmtEncoding() isprovided, which defines the encoding when no explicit encoding is provided, toavoid breaking all code using fmtId().All users of fmtId()/fmtQualifiedId() are either converted to the explicitversion or a call to setFmtEncoding() has been added.This commit does not yet utilize the now well-defined encoding, that willhappen in a subsequent commit.Reviewed-by: Noah Misch <noah@leadboat.com>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Backpatch-through: 13Security:CVE-2025-10941 parent5bc33cb commit2ae54ae
File tree
13 files changed
+112
-22
lines changed- src
- bin
- pg_dump
- psql
- scripts
- fe_utils
- include/fe_utils
13 files changed
+112
-22
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2716 | 2716 |
| |
2717 | 2717 |
| |
2718 | 2718 |
| |
| 2719 | + | |
2719 | 2720 |
| |
2720 | 2721 |
| |
2721 | 2722 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1126 | 1126 |
| |
1127 | 1127 |
| |
1128 | 1128 |
| |
| 1129 | + | |
1129 | 1130 |
| |
1130 | 1131 |
| |
1131 | 1132 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
512 | 512 |
| |
513 | 513 |
| |
514 | 514 |
| |
| 515 | + | |
515 | 516 |
| |
516 | 517 |
| |
517 | 518 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1280 | 1280 |
| |
1281 | 1281 |
| |
1282 | 1282 |
| |
| 1283 | + | |
1283 | 1284 |
| |
1284 | 1285 |
| |
1285 | 1286 |
| |
| |||
3669 | 3670 |
| |
3670 | 3671 |
| |
3671 | 3672 |
| |
| 3673 | + | |
| 3674 | + | |
3672 | 3675 |
| |
3673 | 3676 |
| |
3674 | 3677 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
115 |
| - | |
116 |
| - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
117 | 118 |
| |
118 | 119 |
| |
119 | 120 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
191 | 191 |
| |
192 | 192 |
| |
193 | 193 |
| |
| 194 | + | |
| 195 | + | |
194 | 196 |
| |
195 | 197 |
| |
196 | 198 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
263 | 263 |
| |
264 | 264 |
| |
265 | 265 |
| |
| 266 | + | |
| 267 | + | |
266 | 268 |
| |
267 | 269 |
| |
268 | 270 |
| |
|
Lines changed: 6 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
128 | 128 |
| |
129 | 129 |
| |
130 | 130 |
| |
131 |
| - | |
132 |
| - | |
133 |
| - | |
134 |
| - | |
135 |
| - | |
136 |
| - | |
137 |
| - | |
138 | 131 |
| |
139 | 132 |
| |
140 | 133 |
| |
| |||
148 | 141 |
| |
149 | 142 |
| |
150 | 143 |
| |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
151 | 150 |
| |
152 | 151 |
| |
153 | 152 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
142 | 142 |
| |
143 | 143 |
| |
144 | 144 |
| |
145 |
| - | |
| 145 | + | |
| 146 | + | |
146 | 147 |
| |
147 | 148 |
| |
148 | 149 |
| |
|
Lines changed: 7 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
533 | 533 |
| |
534 | 534 |
| |
535 | 535 |
| |
536 |
| - | |
| 536 | + | |
| 537 | + | |
537 | 538 |
| |
538 | 539 |
| |
539 | 540 |
| |
| |||
573 | 574 |
| |
574 | 575 |
| |
575 | 576 |
| |
576 |
| - | |
| 577 | + | |
| 578 | + | |
577 | 579 |
| |
578 | 580 |
| |
579 | 581 |
| |
| |||
743 | 745 |
| |
744 | 746 |
| |
745 | 747 |
| |
746 |
| - | |
747 |
| - | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
748 | 751 |
| |
749 | 752 |
| |
750 | 753 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
701 | 701 |
| |
702 | 702 |
| |
703 | 703 |
| |
704 |
| - | |
705 |
| - | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
706 | 707 |
| |
707 | 708 |
| |
708 | 709 |
| |
|
Lines changed: 78 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
| 22 | + | |
22 | 23 |
| |
23 | 24 |
| |
24 | 25 |
| |
25 | 26 |
| |
26 | 27 |
| |
27 | 28 |
| |
28 | 29 |
| |
| 30 | + | |
| 31 | + | |
29 | 32 |
| |
30 | 33 |
| |
31 | 34 |
| |
| |||
54 | 57 |
| |
55 | 58 |
| |
56 | 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 | + | |
57 | 94 |
| |
58 | 95 |
| |
59 | 96 |
| |
60 |
| - | |
| 97 | + | |
61 | 98 |
| |
62 | 99 |
| |
63 | 100 |
| |
64 |
| - | |
| 101 | + | |
65 | 102 |
| |
66 | 103 |
| |
67 | 104 |
| |
| |||
134 | 171 |
| |
135 | 172 |
| |
136 | 173 |
| |
137 |
| - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
138 | 192 |
| |
139 | 193 |
| |
140 | 194 |
| |
141 | 195 |
| |
142 | 196 |
| |
143 | 197 |
| |
144 | 198 |
| |
145 |
| - | |
| 199 | + | |
146 | 200 |
| |
147 | 201 |
| |
148 | 202 |
| |
149 | 203 |
| |
150 | 204 |
| |
151 | 205 |
| |
152 | 206 |
| |
153 |
| - | |
| 207 | + | |
154 | 208 |
| |
155 |
| - | |
| 209 | + | |
156 | 210 |
| |
157 | 211 |
| |
158 | 212 |
| |
| |||
162 | 216 |
| |
163 | 217 |
| |
164 | 218 |
| |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
165 | 237 |
| |
166 | 238 |
| |
167 | 239 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| 28 | + | |
28 | 29 |
| |
| 30 | + | |
| 31 | + | |
29 | 32 |
| |
30 | 33 |
| |
31 | 34 |
| |
|
0 commit comments
Comments
(0)