pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #6152: possibly wrong display of pg_settings.enumvals for default_transaction_isolation
3+ messages / 2 participants
[nested] [flat]
* BUG #6152: possibly wrong display of pg_settings.enumvals for default_transaction_isolation
@ 2011-08-05 20:54 Christoph Anton Mitterer <calestyo@scientia.net>
0 siblings, 1 reply; 3+ messages in thread
From: Christoph Anton Mitterer @ 2011-08-05 20:54 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged online:
Bug reference: 6152
Logged by: Christoph Anton Mitterer
Email address: calestyo@scientia.net
PostgreSQL version: 9.0
Operating system: Debian sid
Description: possibly wrong display of pg_settings.enumvals for
default_transaction_isolation
Details:
Hi
$ psql -c 'SELECT name,vartype,enumvals FROM pg_settings;' | grep
default_transaction_isolation
could not change directory to "/root"
default_transaction_isolation | enum | {serializable,"repeatable
read","read committed","read uncommitted"}
Using e.g.:
default_transaction_isolation = "read committed"
does not work however. It only works in single quotes.
If I don't get something wrong, there should be either a bug in the output
of pg_settings.enumvals or the parsing of the config file.
Cheers,
Chris.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #6152: possibly wrong display of pg_settings.enumvals for default_transaction_isolation
@ 2011-08-05 21:21 Tom Lane <tgl@sss.pgh.pa.us>
parent: Christoph Anton Mitterer <calestyo@scientia.net>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2011-08-05 21:21 UTC (permalink / raw)
To: Christoph Anton Mitterer <calestyo@scientia.net>; +Cc: pgsql-bugs
"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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: BUG #6152: possibly wrong display of pg_settings.enumvals for default_transaction_isolation
@ 2011-08-05 21:23 Christoph Anton Mitterer <calestyo@scientia.net>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 3+ messages in thread
From: Christoph Anton Mitterer @ 2011-08-05 21:23 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-bugs
Hi.
ok,.. I got that wrong and thought the enumvals was intended to be the
exact list how to set the values in the config.
Cheers,
Chris.
Attachments:
smime.p7s (application/x-pkcs7-signature, 5.5K) download
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2011-08-05 21:23 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-08-05 20:54 BUG #6152: possibly wrong display of pg_settings.enumvals for default_transaction_isolation Christoph Anton Mitterer <calestyo@scientia.net>
2011-08-05 21:21 ` Tom Lane <tgl@sss.pgh.pa.us>
2011-08-05 21:23 ` Christoph Anton Mitterer <calestyo@scientia.net>
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