Re: pgsql: Row-Level Security Policies (RLS)

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Stephen Frost <sfrost(at)snowman(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-committers(at)postgresql(dot)org
Subject: Re: pgsql: Row-Level Security Policies (RLS)
Date: 2014-09-21 17:06:22
Message-ID: 20140921170622.GA13527@awork2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On 2014-09-21 13:41:55 -0300, Alvaro Herrera wrote:
> Stephen Frost wrote:
> > * Peter Eisentraut (peter_e(at)gmx(dot)net) wrote:
> > > On 9/19/14 11:41 AM, Stephen Frost wrote:
> > > > Row-Level Security Policies (RLS)
> > >
> > > src/include/commands/policy.h needs to include a file that defines
> > > Relation, so that it can stand on its own.
> >
> > Hum. I wonder if that's because I got a bit over-aggressive at removing
> > #includes while reviewing the patch. In any case, will fix.
>
> This kind of problem is easy to miss. We need some way to have includes
> checked and failures reported by buildfarm, or perhaps directly during
> compilation. I have a make rule for that somewhere, gcc-dependent
> AFAIK, but it's ugly and leaves .gch files behind.

IIRC cplupluscheck catches such problem. Annoyingly it doesn't work
properly in vpath builds...

Master causes these warnings for me btw:
/home/andres/src/postgresql/src/backend/commands/policy.c:48:19:
warning: type qualifiers ignored on function return type
[-Wignored-qualifiers]
static const char parse_row_security_command(const char *cmd_name);
^
/home/andres/src/postgresql/src/backend/commands/policy.c:106:1:
warning: type qualifiers ignored on function return type
[-Wignored-qualifiers]
parse_row_security_command(const char *cmd_name)
^

Greetings,

Andres Freund

--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Stephen Frost 2014-09-21 17:50:15 Re: pgsql: Row-Level Security Policies (RLS)
Previous Message Alvaro Herrera 2014-09-21 16:41:55 Re: pgsql: Row-Level Security Policies (RLS)

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2014-09-21 17:08:56 Re: proposal: window function - change_number
Previous Message Pavel Stehule 2014-09-21 17:06:02 Re: proposal: window function - change_number