Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YoFtX-0002Ub-Sq for pgsql-bugs@arkaria.postgresql.org; Fri, 01 May 2015 18:42:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YoFtW-0005GV-TF for pgsql-bugs@arkaria.postgresql.org; Fri, 01 May 2015 18:42:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YoFtW-0005GP-Bp for pgsql-bugs@postgresql.org; Fri, 01 May 2015 18:42:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1YoFtS-0007cZ-Di for pgsql-bugs@postgresql.org; Fri, 01 May 2015 18:42:37 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t41IgVW2014472; Fri, 1 May 2015 14:42:31 -0400 From: Tom Lane To: robertmassaioli@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13203: XOR Check looks missing parens in \d In-reply-to: <20150430224444.2662.27980@wrigleys.postgresql.org> References: <20150430224444.2662.27980@wrigleys.postgresql.org> Comments: In-reply-to robertmassaioli@gmail.com message dated "Thu, 30 Apr 2015 22:44:44 -0000" Date: Fri, 01 May 2015 11:42:31 -0700 Message-ID: <38037.1430505751@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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