postgresql/contrib/sepgsql
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
..
expected Add missing check on invocation of trusted procedures. 2011-04-04 13:25:42 -04:00
sql Add missing check on invocation of trusted procedures. 2011-04-04 13:25:42 -04:00
.gitignore Minor sepgsql regression test fixes. 2011-02-02 23:46:51 -05:00
Makefile Remove rule to build sepgsql-regtest.pp. 2011-02-17 06:40:32 -05:00
dml.c Various sepgsql corrections. 2011-02-02 23:39:43 -05:00
hooks.c Revise the API for GUC variable assign hooks. 2011-04-07 00:12:02 -04:00
label.c Various sepgsql corrections. 2011-02-02 23:39:43 -05:00
launcher Various sepgsql corrections. 2011-02-02 23:39:43 -05:00
proc.c Various sepgsql corrections. 2011-02-02 23:39:43 -05:00
relation.c Various sepgsql corrections. 2011-02-02 23:39:43 -05:00
schema.c Various sepgsql corrections. 2011-02-02 23:39:43 -05:00
selinux.c Various sepgsql corrections. 2011-02-02 23:39:43 -05:00
sepgsql-regtest.te Add missing check on invocation of trusted procedures. 2011-04-04 13:25:42 -04:00
sepgsql.h Add missing #include 2011-03-28 10:37:29 -03:00
sepgsql.sql.in sepgsql, an SE-Linux integration for PostgreSQL 2011-01-23 20:48:27 -05:00