pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephen Frost <sfrost@snowman.net>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: RLS refactoring
Date: Tue, 15 Sep 2015 19:16:06 -0400
Message-ID: <28196.1442358966@sss.pgh.pa.us> (raw)
In-Reply-To: <20150915224851.GD3685@tamriel.snowman.net>
References: <E1ZbwEg-0004Ct-Qc@gemulon.postgresql.org>
	<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>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Stephen Frost <sfrost@snowman.net> 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



view thread (13+ messages)  latest in thread

Message-ID: <28196.1442358966@sss.pgh.pa.us>
Permalink:  ../28196.1442358966@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28196.1442358966@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, sfrost@snowman.net, alvherre@2ndquadrant.com
  Subject: Re: pgsql: RLS refactoring
  In-Reply-To: <28196.1442358966@sss.pgh.pa.us>
  References: <E1ZbwEg-0004Ct-Qc@gemulon.postgresql.org> <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> <28196.1442358966@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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