forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2938eec
committed
Extend GUC concepts of parse_hook and assign_hook to all four supported
datatypes, not only strings. parse_hook is useless for bool, I suppose,but it seems possibly useful for int and double to apply variable-specificconstraints that are more complex than simple range limits. assign_hookis definitely useful for all datatypes --- we need it right now for boolto support date cache reset when changing Australian timezone rule setting.Also, clean up some residual problems with the reset all/show all patch,including memory leaks and mistaken reset of PostPortNumber. It seemsbest that RESET ALL not touch variables that don't have SUSET orUSERSET context.1 parent89765fa commit2938eec
File tree
6 files changed
+223
-136
lines changed- src
- backend
- bootstrap
- commands
- postmaster
- tcop
- utils/misc
- include/utils
6 files changed
+223
-136
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
243 | 243 |
| |
244 | 244 |
| |
245 | 245 |
| |
246 |
| - | |
| 246 | + | |
247 | 247 |
| |
248 | 248 |
| |
249 | 249 |
| |
|
Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
792 | 792 |
| |
793 | 793 |
| |
794 | 794 |
| |
795 |
| - | |
| 795 | + | |
796 | 796 |
| |
797 |
| - | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
798 | 800 |
|
Lines changed: 7 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 |
| - | |
| 31 | + | |
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
| |||
362 | 362 |
| |
363 | 363 |
| |
364 | 364 |
| |
365 |
| - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
366 | 370 |
| |
367 |
| - | |
| 371 | + | |
368 | 372 |
| |
369 | 373 |
| |
370 | 374 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
1156 | 1156 |
| |
1157 | 1157 |
| |
1158 | 1158 |
| |
1159 |
| - | |
| 1159 | + | |
1160 | 1160 |
| |
1161 | 1161 |
| |
1162 | 1162 |
| |
| |||
1709 | 1709 |
| |
1710 | 1710 |
| |
1711 | 1711 |
| |
1712 |
| - | |
| 1712 | + | |
1713 | 1713 |
| |
1714 | 1714 |
| |
1715 | 1715 |
| |
|
0 commit comments
Comments
(0)