From: Tom Lane <tgl@sss.pgh.pa.us>
To: robertmassaioli@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13203: XOR Check looks missing parens in \d
Date: Fri, 01 May 2015 11:42:31 -0700
Message-ID: <38037.1430505751@sss.pgh.pa.us> (raw)
In-Reply-To: <20150430224444.2662.27980@wrigleys.postgresql.org>
References: <20150430224444.2662.27980@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
robertmassaioli@gmail.com writes:
> Now, the issue is that when you do \d and view the table that has been
> created the CHECK block is missing parens that show that it really will
> behave as an XOR. I think this is a bug that ould be great to fix. Please
> let me know if you need more information. Cheers!
It's not a bug that we print check constraints without unnecessary parens,
any more than it is that we don't reproduce whitespace exactly.
Those parens are unnecessary, because per the SQL standard AND binds more
tightly than OR.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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, robertmassaioli@gmail.com
Subject: Re: BUG #13203: XOR Check looks missing parens in \d
In-Reply-To: <38037.1430505751@sss.pgh.pa.us>
References: <20150430224444.2662.27980@wrigleys.postgresql.org> <38037.1430505751@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