Re: [COMMITTERS] pgsql: Automatic view update rules Bernd Helmle - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [COMMITTERS] pgsql: Automatic view update rules Bernd Helmle
Date
Msg-id 200901272224.19139.peter_e@gmx.net
Whole thread Raw
In response to Re: [COMMITTERS] pgsql: Automatic view update rules Bernd Helmle  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [COMMITTERS] pgsql: Automatic view update rules Bernd Helmle
List pgsql-hackers
On Tuesday 27 January 2009 17:19:28 Tom Lane wrote:
> If we'd had the SQL-spec behavior from day one, it wouldn't be a
> problem, but you can't just blow off the old behavior like that.
> It's a potential security hole, since GRANT ALL on a view used to
> be de facto the same as GRANT SELECT, if you hadn't bothered to
> create any rules.

That is a good point.  But the only clean solution would be to make views 
never updatable by default, and invent a nonstandard syntax to make them so, 
which seems very unattractive to me.  A GUC variable as a transition measure 
could work, though.


pgsql-hackers by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: Re: pg_upgrade project status
Next
From: Peter Eisentraut
Date:
Subject: Re: Commitfest infrastructure (was Re: 8.4 release planning)