Re: [COMMITTERS] pgsql: WITH CHECK OPTION support for auto-updatable VIEWs

From: hubert depesz lubaczewski <depesz(at)depesz(dot)com>
To: Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com>
Cc: Stephen Frost <sfrost(at)snowman(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [COMMITTERS] pgsql: WITH CHECK OPTION support for auto-updatable VIEWs
Date: 2013-07-30 10:47:24
Message-ID: 20130730104724.GA4453@depesz.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Tue, Jul 30, 2013 at 11:45:47AM +0100, Dean Rasheed wrote:
> Quoting the manual:
>
> LOCAL:
> New rows are only checked against the conditions defined directly in
> the view itself. Any conditions defined on underlying base views are
> not checked (unless they also specify the CHECK OPTION).
>
> CASCADED:
> New rows are checked against the conditions of the view and all
> underlying base views. If the CHECK OPTION is specified, and neither
> LOCAL nor CASCADED is specified, then CASCADED is assumed.
>
> In particular, note the part about "unless they also specify the CHECK OPTION".

Ah. All clear now. Sorry for misreading.

Best regards,

depesz

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2013-07-30 13:23:39 pgsql: pg_upgrade: clarify C comment about Windows thread struct pointe
Previous Message Dean Rasheed 2013-07-30 10:45:47 Re: [COMMITTERS] pgsql: WITH CHECK OPTION support for auto-updatable VIEWs

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Smith 2013-07-30 12:22:31 Re: ALTER SYSTEM SET command to change postgresql.conf parameters (RE: Proposal for Allow postgresql.conf values to be changed via SQL [review])
Previous Message Dean Rasheed 2013-07-30 10:45:47 Re: [COMMITTERS] pgsql: WITH CHECK OPTION support for auto-updatable VIEWs