forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8810356
committed
Disallow setting bogus GUCs within an extension's reserved namespace.
Commit75d2206 tried to throw a warning for setting a custom GUC whoseprefix belongs to a previously-loaded extension, if there is no such GUCdefined by the extension. But that caused unstable behavior withparallel workers, because workers don't necessarily load extensions andGUCs in the same order their leader did. To make that work safely, wehave to completely disallow the case. We now actually remove any suchGUCs at the time of initial extension load, and then throw an error notjust a warning if you try to add one later. While this might create acompatibility issue for a few people, the improvement in error-detectioncapability seems worth it; it's hard to believe that there's any gooduse-case for choosing such GUC names.This also un-reverts5609cc0 (Rename EmitWarningsOnPlaceholders() toMarkGUCPrefixReserved()), since that function's old name is now evenmore of a misnomer.Florin Irion and Tom LaneDiscussion:https://postgr.es/m/1902182.1640711215@sss.pgh.pa.us1 parent2776922 commit8810356
File tree
18 files changed
+101
-31
lines changed- contrib
- auth_delay
- auto_explain
- basic_archive
- pg_prewarm
- pg_stat_statements
- pg_trgm
- postgres_fdw
- sepgsql
- src
- backend/utils/misc
- include/utils
- pl
- plperl
- plpgsql/src
- tcl
- test
- modules
- delay_execution
- ssl_passphrase_callback
- worker_spi
- regress
- expected
- sql
18 files changed
+101
-31
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
68 | 68 |
| |
69 | 69 |
| |
70 | 70 |
| |
71 |
| - | |
| 71 | + | |
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
231 | 231 |
| |
232 | 232 |
| |
233 | 233 |
| |
234 |
| - | |
| 234 | + | |
235 | 235 |
| |
236 | 236 |
| |
237 | 237 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
72 |
| - | |
| 72 | + | |
73 | 73 |
| |
74 | 74 |
| |
75 | 75 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
137 | 137 |
| |
138 | 138 |
| |
139 | 139 |
| |
140 |
| - | |
| 140 | + | |
141 | 141 |
| |
142 | 142 |
| |
143 | 143 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
437 | 437 |
| |
438 | 438 |
| |
439 | 439 |
| |
440 |
| - | |
| 440 | + | |
441 | 441 |
| |
442 | 442 |
| |
443 | 443 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
101 | 101 |
| |
102 | 102 |
| |
103 | 103 |
| |
104 |
| - | |
| 104 | + | |
105 | 105 |
| |
106 | 106 |
| |
107 | 107 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
538 | 538 |
| |
539 | 539 |
| |
540 | 540 |
| |
541 |
| - | |
| 541 | + | |
542 | 542 |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
455 | 455 |
| |
456 | 456 |
| |
457 | 457 |
| |
458 |
| - | |
| 458 | + | |
459 | 459 |
| |
460 | 460 |
| |
461 | 461 |
| |
|
Lines changed: 64 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
150 | 150 |
| |
151 | 151 |
| |
152 | 152 |
| |
| 153 | + | |
| 154 | + | |
153 | 155 |
| |
154 | 156 |
| |
155 | 157 |
| |
| |||
5590 | 5592 |
| |
5591 | 5593 |
| |
5592 | 5594 |
| |
5593 |
| - | |
| 5595 | + | |
| 5596 | + | |
| 5597 | + | |
5594 | 5598 |
| |
5595 |
| - | |
5596 |
| - | |
5597 |
| - | |
5598 |
| - | |
5599 |
| - | |
5600 |
| - | |
5601 |
| - | |
5602 |
| - | |
5603 |
| - | |
5604 |
| - | |
| 5599 | + | |
| 5600 | + | |
| 5601 | + | |
| 5602 | + | |
| 5603 | + | |
| 5604 | + | |
| 5605 | + | |
| 5606 | + | |
| 5607 | + | |
| 5608 | + | |
| 5609 | + | |
| 5610 | + | |
| 5611 | + | |
| 5612 | + | |
| 5613 | + | |
| 5614 | + | |
| 5615 | + | |
| 5616 | + | |
| 5617 | + | |
| 5618 | + | |
| 5619 | + | |
| 5620 | + | |
| 5621 | + | |
| 5622 | + | |
| 5623 | + | |
| 5624 | + | |
| 5625 | + | |
| 5626 | + | |
| 5627 | + | |
| 5628 | + | |
| 5629 | + | |
| 5630 | + | |
| 5631 | + | |
| 5632 | + | |
5605 | 5633 |
| |
5606 | 5634 |
| |
5607 | 5635 |
| |
| |||
9355 | 9383 |
| |
9356 | 9384 |
| |
9357 | 9385 |
| |
| 9386 | + | |
| 9387 | + | |
| 9388 | + | |
| 9389 | + | |
9358 | 9390 |
| |
9359 | 9391 |
| |
9360 | 9392 |
| |
9361 | 9393 |
| |
9362 |
| - | |
| 9394 | + | |
9363 | 9395 |
| |
9364 | 9396 |
| |
9365 | 9397 |
| |
| 9398 | + | |
9366 | 9399 |
| |
| 9400 | + | |
| 9401 | + | |
| 9402 | + | |
| 9403 | + | |
| 9404 | + | |
| 9405 | + | |
9367 | 9406 |
| |
9368 | 9407 |
| |
9369 | 9408 |
| |
| |||
9373 | 9412 |
| |
9374 | 9413 |
| |
9375 | 9414 |
| |
9376 |
| - | |
9377 |
| - | |
9378 |
| - | |
| 9415 | + | |
| 9416 | + | |
| 9417 | + | |
| 9418 | + | |
| 9419 | + | |
| 9420 | + | |
| 9421 | + | |
| 9422 | + | |
9379 | 9423 |
| |
9380 | 9424 |
| |
| 9425 | + | |
| 9426 | + | |
| 9427 | + | |
| 9428 | + | |
| 9429 | + | |
9381 | 9430 |
| |
9382 | 9431 |
| |
9383 | 9432 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
354 | 354 |
| |
355 | 355 |
| |
356 | 356 |
| |
357 |
| - | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
358 | 361 |
| |
359 | 362 |
| |
360 | 363 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
455 | 455 |
| |
456 | 456 |
| |
457 | 457 |
| |
458 |
| - | |
| 458 | + | |
459 | 459 |
| |
460 | 460 |
| |
461 | 461 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
197 | 197 |
| |
198 | 198 |
| |
199 | 199 |
| |
200 |
| - | |
| 200 | + | |
201 | 201 |
| |
202 | 202 |
| |
203 | 203 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
474 | 474 |
| |
475 | 475 |
| |
476 | 476 |
| |
477 |
| - | |
478 |
| - | |
| 477 | + | |
| 478 | + | |
479 | 479 |
| |
480 | 480 |
| |
481 | 481 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
94 |
| - | |
| 94 | + | |
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
49 | 49 |
| |
50 | 50 |
| |
51 | 51 |
| |
52 |
| - | |
| 52 | + | |
53 | 53 |
| |
54 | 54 |
| |
55 | 55 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
322 | 322 |
| |
323 | 323 |
| |
324 | 324 |
| |
325 |
| - | |
| 325 | + | |
326 | 326 |
| |
327 | 327 |
| |
328 | 328 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
548 | 548 |
| |
549 | 549 |
| |
550 | 550 |
| |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
551 | 562 |
| |
552 | 563 |
| |
553 | 564 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
163 | 163 |
| |
164 | 164 |
| |
165 | 165 |
| |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
166 | 173 |
| |
167 | 174 |
| |
168 | 175 |
| |
|
0 commit comments
Comments
(0)