From: | Andres Freund <andres(at)2ndquadrant(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | specifying repeatable read in PGOPTIONS |
Date: | 2014-02-04 12:58:23 |
Message-ID: | 20140204125823.GJ12016@awork2.anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
I recently had the need to bury the used isolation level in the
connection string, but it turns out that doesn't work that well...
PGOPTIONS='-c default_transaction_isolation=serializable' \
psql ... -c "SHOW default_transaction_isolation"
works well enough, but
PGOPTIONS='-c default_transaction_isolation=repeatable read' \
psql ... -c "SHOW default_transaction_isolation"
doesn't, because of the whitespace. I couldn't come up with any adequate
quoting.
I'd like to propose adding aliases with dashes instead of spaces to the
isolation_level_options array? I'd even like to backport it, because it
makes benchmarking across versions unneccessarily hard.
Additionally we might want to think about a bit better quoting support
for such options?
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2014-02-04 13:30:34 | Re: could not create IPv6 socket (AI_ADDRCONFIG) |
Previous Message | Andres Freund | 2014-02-04 12:21:01 | Re: Re: Misaligned BufferDescriptors causing major performance problems on AMD |