Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZbzSR-00053O-VM for pgsql-committers@arkaria.postgresql.org; Tue, 15 Sep 2015 23:16:16 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZbzSR-0005mT-8S for pgsql-committers@arkaria.postgresql.org; Tue, 15 Sep 2015 23:16:15 +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) (envelope-from ) id 1ZbzSQ-0005mB-Ma for pgsql-committers@postgresql.org; Tue, 15 Sep 2015 23:16:14 +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 1ZbzSO-0005Rm-4s for pgsql-committers@postgresql.org; Tue, 15 Sep 2015 23:16:14 +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 t8FNG6jx028197; Tue, 15 Sep 2015 19:16:06 -0400 From: Tom Lane To: Stephen Frost cc: Alvaro Herrera , pgsql-committers@postgresql.org Subject: Re: pgsql: RLS refactoring In-reply-to: <20150915224851.GD3685@tamriel.snowman.net> References: <22678.1442348981@sss.pgh.pa.us> <20150915220002.GB3685@tamriel.snowman.net> <20150915221655.GK88970@alvherre.pgsql> <27213.1442356184@sss.pgh.pa.us> <20150915224851.GD3685@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Tue, 15 Sep 2015 18:48:52 -0400" Date: Tue, 15 Sep 2015 19:16:06 -0400 Message-ID: <28196.1442358966@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-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org Stephen Frost writes: > Agreed. I will see about improving on that situation with at least > documentation changes. If we want to remove it completely then we'd > need to bump catversion.. Not against doing that if we want to though. > Might be better that way. readfuncs.c doesn't actually stop to verify that the field name in stored rules is what it expects. So I believe (but you'd better check) that renaming the field could be done without initdb. If we wanted to change its placement, we'd need initdb --- unless we wanted to move it in the struct definition but not in _outQuery/_readQuery, which I wouldn't do in HEAD but it might be acceptable in back branches. So the limiting factor here is not initdb but avoiding an API/ABI break for extensions that look at struct Query. It's clearly too late to do any such thing in 9.4, but we still could accept API breaks for 9.5 I think. My vote would be to rename and reposition the field in HEAD and 9.5 and accept the corresponding initdb. We already forced an initdb since alpha2, so it's basically free as far as testers are concerned, and keeping 9.5 in sync with HEAD in this area seems like a really good idea for awhile to come. regards, tom lane -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers