aboutsummaryrefslogtreecommitdiff
path: root/src/backend/postmaster/postmaster.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2014-08-28 13:59:29 +0200
committerAndres Freund <andres@anarazel.de>2014-08-28 13:59:29 +0200
commit11a020eb6e4023a1570a2788ba22dd6aafbd02dc (patch)
tree9a33f530bc058929f6e823250111c238c6c1d267 /src/backend/postmaster/postmaster.c
parente23014f3d40f7d2c23bc97207fd28efbe5ba102b (diff)
downloadpostgresql-11a020eb6e4023a1570a2788ba22dd6aafbd02dc.tar.gz
postgresql-11a020eb6e4023a1570a2788ba22dd6aafbd02dc.zip
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.
Diffstat (limited to 'src/backend/postmaster/postmaster.c')
-rw-r--r--src/backend/postmaster/postmaster.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index b190cf51136..14535c8b35a 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -4083,8 +4083,7 @@ BackendRun(Port *port)
/*
* Pass any backend switches specified with -o on the postmaster's own
- * command line. We assume these are secure. (It's OK to mangle
- * ExtraOptions now, since we're safely inside a subprocess.)
+ * command line. We assume these are secure.
*/
pg_split_opts(av, &ac, ExtraOptions);