Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UloLW-0001jc-NC for pgsql-bugs@arkaria.postgresql.org; Sun, 09 Jun 2013 22:44:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UloLW-0006hB-7T for pgsql-bugs@arkaria.postgresql.org; Sun, 09 Jun 2013 22:44:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UloLV-0006h6-Jh for pgsql-bugs@postgresql.org; Sun, 09 Jun 2013 22:44:21 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UloLO-0004BR-JL for pgsql-bugs@postgresql.org; Sun, 09 Jun 2013 22:44:21 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r59Mi8Ua015016; Sun, 9 Jun 2013 18:44:08 -0400 (EDT) From: Tom Lane To: =?UTF-8?Q?Rafa=C5=82_Rzepecki?= cc: pgsql-bugs@postgresql.org, Amit Kapila Subject: Re: BUG #8198: ROW() literals not supported in an IN clause In-reply-to: References: <51adc2f4.65cc440a.3921.ffffdd76SMTPIN_ADDED_BROKEN@mx.google.com> Comments: In-reply-to =?UTF-8?Q?Rafa=C5=82_Rzepecki?= message dated "Wed, 05 Jun 2013 02:03:49 +0200" Date: Sun, 09 Jun 2013 18:44:08 -0400 Message-ID: <15015.1370817848@sss.pgh.pa.us> X-Pg-Spam-Score: -2.0 (--) 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 =?UTF-8?Q?Rafa=C5=82_Rzepecki?= writes: > I'm pretty sure the original intent was to afford some extra checks so > that conditions such as "ROW(1, 2) IN ((ROW(3, 4), ROW(5, 6, 7))" > would get rejected at parsing time (CCing the original author; please > confirm). No; the reason it was like that was that when that code was written, make_row_comparison_op was the only way to compare two row values at all. We didn't have record_eq and friends; nor did we have arrays of composites. > Since the restriction seems a rather arbitrary (at least I fail to see > any reason for it), it can be removed altogether (patch 0002, not > tested as well): This is reasonable as far as it goes, but I think it doesn't go far enough --- there's really no reason anymore to reject RowExprs as components of ScalarArrayOpExpr either. I've extended this patch some and committed it. Thanks for the report! 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