Re: specifying repeatable read in PGOPTIONS
От | Tom Lane |
---|---|
Тема | Re: specifying repeatable read in PGOPTIONS |
Дата | |
Msg-id | 14183.1391531782@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | specifying repeatable read in PGOPTIONS (Andres Freund <andres@2ndquadrant.com>) |
Ответы |
Re: specifying repeatable read in PGOPTIONS
|
Список | pgsql-hackers |
Andres Freund <andres@2ndquadrant.com> writes: > 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. -1. This is not a general solution to the problem. There are other GUCs for which people might want spaces in the value. > Additionally we might want to think about a bit better quoting support > for such options? Yeah. See pg_split_opts(), which explicitly acknowledges that it'll fall down for space-containing options. Not sure what the most appropriate quoting convention would be there, but I'm sure we can think of something. regards, tom lane
В списке pgsql-hackers по дате отправления: