]> granicus.if.org Git - postgresql/commit
Allow escaping of option values for options passed at connection start.
authorAndres Freund <andres@anarazel.de>
Thu, 28 Aug 2014 11:59:29 +0000 (13:59 +0200)
committerAndres Freund <andres@anarazel.de>
Thu, 28 Aug 2014 11:59:29 +0000 (13:59 +0200)
commit11a020eb6e4023a1570a2788ba22dd6aafbd02dc
tree9a33f530bc058929f6e823250111c238c6c1d267
parente23014f3d40f7d2c23bc97207fd28efbe5ba102b
Allow escaping of option values for options passed at connection start.

This is useful to allow to set GUCs to values that include spaces;
something that wasn't previously possible. The primary case motivating
this is the desire to set default_transaction_isolation to 'repeatable
read' on a per connection basis, but other usecases like seach_path do
also exist.

This introduces a slight backward incompatibility: Previously a \ in
an option value would have been passed on literally, now it'll be
taken as an escape.

The relevant mailing list discussion starts with
20140204125823.GJ12016@awork2.anarazel.de.
doc/src/sgml/protocol.sgml
src/backend/postmaster/postmaster.c
src/backend/utils/init/postinit.c