- Notifications
You must be signed in to change notification settings - Fork5
Commit9f5836d
committed
Remember the source GucContext for each GUC parameter.
We used to just remember the GucSource, but saving GucContext too providesa little more information --- notably, whether a SET was done by asuperuser or regular user. This allows us to rip out the fairly dodgy codethat define_custom_variable used to use to try to infer the context tore-install a pre-existing setting with. In particular, it now works fora superuser to SET a extension's SUSET custom variable before loading theassociated extension, because GUC can remember whether the SET was done asa superuser or not. The plperl regression tests contain an example wherethis is useful.1 parent09e196e commit9f5836d
File tree
9 files changed
+73
-81
lines changed- src
- backend/utils/misc
- include/utils
- pl/plperl
- expected
- sql
9 files changed
+73
-81
lines changedLines changed: 12 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
296 | 296 |
| |
297 | 297 |
| |
298 | 298 |
| |
299 |
| - | |
300 |
| - | |
301 |
| - | |
302 |
| - | |
303 |
| - | |
| 299 | + | |
304 | 300 |
| |
305 | 301 |
| |
306 | 302 |
| |
| |||
315 | 311 |
| |
316 | 312 |
| |
317 | 313 |
| |
318 |
| - | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
319 | 325 |
| |
320 | 326 |
| |
321 | 327 |
| |
|
0 commit comments
Comments
(0)