Re: pgsql: RLS refactoring

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: RLS refactoring
Date: 2015-09-15 22:19:54
Message-ID: 27001.1442355594@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Stephen Frost <sfrost(at)snowman(dot)net> writes:
> * Tom Lane (tgl(at)sss(dot)pgh(dot)pa(dot)us) wrote:
>> It looks to me like this changed the representation of stored rules, so it
>> should have included a catversion bump. This is particularly relevant to
>> the 9.5 branch where people already have alpha installations.

> I had considererd if a bump was needed and figured it wasn't.

> I don't mind doing a bump if we feel it's necessary and maybe I'm
> missing that there's a way to cause that node type to end up in the
> catalog, but I don't think so, as we only ever build WithCheckOption
> nodes in the rewriter.

Oh, I see. In that case you should remove WithCheckOption from the set of
node types supported by readfuncs.c, both because it's dead code and to
clarify that the node is not meant to ever end up on disk.

(outfuncs.c support is useful for debugging though, so keep that.)

regards, tom lane

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Stephen Frost 2015-09-15 22:27:02 Re: pgsql: RLS refactoring
Previous Message Alvaro Herrera 2015-09-15 22:16:55 Re: pgsql: RLS refactoring

Browse pgsql-hackers by date

  From Date Subject
Next Message Stephen Frost 2015-09-15 22:27:02 Re: pgsql: RLS refactoring
Previous Message Alvaro Herrera 2015-09-15 22:16:55 Re: pgsql: RLS refactoring