Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id A4C06B5DBC1 for ; Fri, 5 Aug 2011 18:21:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 69805-03 for ; Fri, 5 Aug 2011 21:21:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 51270B5D8C5 for ; Fri, 5 Aug 2011 18:21:30 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p75LLTbt008476; Fri, 5 Aug 2011 17:21:29 -0400 (EDT) To: "Christoph Anton Mitterer" cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6152: possibly wrong display of pg_settings.enumvals for default_transaction_isolation In-reply-to: <201108052054.p75Ksg82047058@wwwmaster.postgresql.org> References: <201108052054.p75Ksg82047058@wwwmaster.postgresql.org> Comments: In-reply-to "Christoph Anton Mitterer" message dated "Fri, 05 Aug 2011 20:54:42 +0000" Date: Fri, 05 Aug 2011 17:21:28 -0400 Message-ID: <8475.1312579288@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.704 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.804 X-Spam-Level: X-Archive-Number: 201108/51 X-Sequence-Number: 30863 "Christoph Anton Mitterer" 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