postgresql/src/backend/utils
Tom Lane 2594cf0e8c Revise the API for GUC variable assign hooks.
The previous functions of assign hooks are now split between check hooks
and assign hooks, where the former can fail but the latter shouldn't.
Aside from being conceptually clearer, this approach exposes the
"canonicalized" form of the variable value to guc.c without having to do
an actual assignment.  And that lets us fix the problem recently noted by
Bernd Helmle that the auto-tune patch for wal_buffers resulted in bogus
log messages about "parameter "wal_buffers" cannot be changed without
restarting the server".  There may be some speed advantage too, because
this design lets hook functions avoid re-parsing variable values when
restoring a previous state after a rollback (they can store a pre-parsed
representation of the value instead).  This patch also resolves a
longstanding annoyance about custom error messages from variable assign
hooks: they should modify, not appear separately from, guc.c's own message
about "invalid parameter value".
2011-04-07 00:12:02 -04:00
..
adt Revise the API for GUC variable assign hooks. 2011-04-07 00:12:02 -04:00
cache Revise the API for GUC variable assign hooks. 2011-04-07 00:12:02 -04:00
error Revise the API for GUC variable assign hooks. 2011-04-07 00:12:02 -04:00
fmgr Revise collation derivation method and expression-tree representation. 2011-03-19 20:30:08 -04:00
hash Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
init Log replication connections only when log_connections is on 2011-01-18 20:02:25 +01:00
mb Revise the API for GUC variable assign hooks. 2011-04-07 00:12:02 -04:00
misc Revise the API for GUC variable assign hooks. 2011-04-07 00:12:02 -04:00
mmgr Run a portal's cleanup hook immediately when pushing it to DONE state. 2011-03-03 13:04:06 -05:00
resowner Implement genuine serializable isolation level. 2011-02-08 00:09:08 +02:00
sort Clean up cruft around collation initialization for tupdescs and scankeys. 2011-03-26 18:28:40 -04:00
time Rearrange snapshot handling to make rule expansion more consistent. 2011-02-28 23:28:06 -05:00
.gitignore Avoid maintaining three separate copies of the error codes list. 2011-02-03 22:32:49 -05:00
errcodes.txt Per-column collation support 2011-02-08 23:04:18 +02:00
Gen_dummy_probes.sed Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
Gen_fmgrtab.pl Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
generate-errcodes.pl Avoid maintaining three separate copies of the error codes list. 2011-02-03 22:32:49 -05:00
Makefile Make handling of errcodes.h more consistent with other generated headers. 2011-02-04 09:29:10 -05:00
probes.d Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00