postgresql/src
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
..
backend Revise the API for GUC variable assign hooks. 2011-04-07 00:12:02 -04:00
bin Tab completion for COMMENT ON FOREIGN DATA WRAPPER / SERVER. 2011-04-01 13:15:49 -04:00
include Revise the API for GUC variable assign hooks. 2011-04-07 00:12:02 -04:00
interfaces Fix typo in PQconnectStartParams(). 2011-04-02 18:05:42 -04:00
makefiles Allow make check in PL directories 2011-02-15 06:52:12 +02:00
pl Revise the API for GUC variable assign hooks. 2011-04-07 00:12:02 -04:00
port Fix up handling of C/POSIX collations. 2011-03-20 12:44:13 -04:00
template Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
test Revise the API for GUC variable assign hooks. 2011-04-07 00:12:02 -04:00
timezone Revise the API for GUC variable assign hooks. 2011-04-07 00:12:02 -04:00
tools Update MSVC toolchain to match SGML entity uppercasing 2011-04-04 16:43:15 -04:00
tutorial Stamp copyrights for year 2011. 2011-01-01 13:18:15 -05:00
.gitignore Convert cvsignore to gitignore, and add .gitignore for build targets. 2010-09-22 12:57:04 +02:00
DEVELOPERS Replace a couple of references to files that no longer exist in the source 2009-05-04 08:08:47 +00:00
Makefile Fix some oversights in distprep and maintainer-clean targets. 2011-03-10 00:04:05 -05:00
Makefile.global.in Add maintainer-check target 2011-03-28 22:56:52 +03:00
Makefile.shlib Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
bcc32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
nls-global.mk Fix makefile logic to not break the build when xgettext is missing 2010-10-14 23:16:46 +03:00
win32.mak Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00