From: Tom Lane <tgl@sss.pgh.pa.us>
To: Christoph Anton Mitterer <calestyo@scientia.net>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6152: possibly wrong display of pg_settings.enumvals for default_transaction_isolation
Date: Fri, 05 Aug 2011 17:21:28 -0400
Message-ID: <8475.1312579288@sss.pgh.pa.us> (raw)
In-Reply-To: <201108052054.p75Ksg82047058@wwwmaster.postgresql.org>
References: <201108052054.p75Ksg82047058@wwwmaster.postgresql.org>
"Christoph Anton Mitterer" <calestyo@scientia.net> writes:
> $ psql -c 'SELECT name,vartype,enumvals FROM pg_settings;' | grep
> default_transaction_isolation
> default_transaction_isolation | enum | {serializable,"repeatable
> read","read committed","read uncommitted"}
That output looks correct to me. The column is an array column, and
double quotes are needed to protect the whitespace embedded in the last
three array elements. (Strictly speaking they could perhaps be omitted,
but the array output function is a bit conservative here --- any
whitespace causes it to include quotes.)
> Using e.g.:
> default_transaction_isolation = "read committed"
> does not work however. It only works in single quotes.
Yeah, the configuration file parser only allows single quotes.
I suppose we could let it accept double quotes too, but I'd be worried
about foreclosing future expansion. The two kinds of quotes mean
entirely different things in SQL commands.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, calestyo@scientia.net
Subject: Re: BUG #6152: possibly wrong display of pg_settings.enumvals for default_transaction_isolation
In-Reply-To: <8475.1312579288@sss.pgh.pa.us>
References: <201108052054.p75Ksg82047058@wwwmaster.postgresql.org> <8475.1312579288@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox