pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #13203: XOR Check looks missing parens in \d
2+ messages / 2 participants
[nested] [flat]
* BUG #13203: XOR Check looks missing parens in \d
@ 2015-04-30 22:44 robertmassaioli@gmail.com
2015-05-01 18:42 ` Re: BUG #13203: XOR Check looks missing parens in \d Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: robertmassaioli@gmail.com @ 2015-04-30 22:44 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 13203
Logged by: Robert Massaioli
Email address: robertmassaioli@gmail.com
PostgreSQL version: 9.4.1
Operating system: OSX
Description:
This is simple to reproduce. First create the following database table and
then run the psql session as documented here:
https://bitbucket.org/snippets/robertmassaioli/rqpz
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!
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #13203: XOR Check looks missing parens in \d
2015-04-30 22:44 BUG #13203: XOR Check looks missing parens in \d robertmassaioli@gmail.com
@ 2015-05-01 18:42 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2015-05-01 18:42 UTC (permalink / raw)
To: robertmassaioli@gmail.com; +Cc: pgsql-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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2015-05-01 18:42 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-04-30 22:44 BUG #13203: XOR Check looks missing parens in \d robertmassaioli@gmail.com
2015-05-01 18:42 ` Tom Lane <tgl@sss.pgh.pa.us>
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