Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1at4Bd-0007vz-8K for pgsql-general@arkaria.postgresql.org; Thu, 21 Apr 2016 02:17:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1at4Bc-00070o-Nz for pgsql-general@arkaria.postgresql.org; Thu, 21 Apr 2016 02:17:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1at4Bc-00070T-0v for pgsql-general@postgresql.org; Thu, 21 Apr 2016 02:17:44 +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_2) (envelope-from ) id 1at4BY-00076b-Jy for pgsql-general@postgresql.org; Thu, 21 Apr 2016 02:17:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u3L2HRo2024235; Wed, 20 Apr 2016 22:17:27 -0400 From: Tom Lane To: Karl Czajkowski cc: pgsql-general@postgresql.org Subject: Re: RLS policy dump/restore failure due to elided type-casts In-reply-to: <20160421014736.GD7976@moraine.isi.edu> References: <20160421001832.GB7976@moraine.isi.edu> <18967.1461201440@sss.pgh.pa.us> <20160421014736.GD7976@moraine.isi.edu> Comments: In-reply-to Karl Czajkowski message dated "Wed, 20 Apr 2016 18:47:36 -0700" Date: Wed, 20 Apr 2016 22:17:27 -0400 Message-ID: <24234.1461205047@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org Karl Czajkowski writes: > On Apr 20, Tom Lane modulated: >> Just out of curiosity, why are you doing it like that, and not simply >> USING ('example attribute value' = ANY (current_attributes())) >> It seems like you're going out of your way to complicate matters. > Going out of my way to complicate matters is my specialty. :-) ;-). Nonetheless, I agree this is a bug in ruleutils -- it should be able to emit the expression in a way that will re-parse the same way. Will look into fixing it. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general