diff options
| author | Stephen Frost <sfrost@snowman.net> | 2013-07-18 17:10:16 -0400 |
|---|---|---|
| committer | Stephen Frost <sfrost@snowman.net> | 2013-07-18 17:10:16 -0400 |
| commit | 4cbe3ac3e86790d05c569de4585e5075a62a9b41 (patch) | |
| tree | 8adc929520d4103b4493c0c23bcb7d2b2c2a5a4d /doc/src/sgml/ref/alter_view.sgml | |
| parent | 6f9e39bc9993c18686f0950f9b9657c7c97c7450 (diff) | |
| download | postgresql-4cbe3ac3e86790d05c569de4585e5075a62a9b41.tar.gz | |
WITH CHECK OPTION support for auto-updatable VIEWs
For simple views which are automatically updatable, this patch allows
the user to specify what level of checking should be done on records
being inserted or updated. For 'LOCAL CHECK', new tuples are validated
against the conditionals of the view they are being inserted into, while
for 'CASCADED CHECK' the new tuples are validated against the
conditionals for all views involved (from the top down).
This option is part of the SQL specification.
Dean Rasheed, reviewed by Pavel Stehule
Diffstat (limited to 'doc/src/sgml/ref/alter_view.sgml')
| -rw-r--r-- | doc/src/sgml/ref/alter_view.sgml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/alter_view.sgml b/doc/src/sgml/ref/alter_view.sgml index db5a656808..cbec3ab54e 100644 --- a/doc/src/sgml/ref/alter_view.sgml +++ b/doc/src/sgml/ref/alter_view.sgml @@ -28,6 +28,11 @@ ALTER VIEW [ IF EXISTS ] <replaceable class="parameter">name</replaceable> RENAM ALTER VIEW [ IF EXISTS ] <replaceable class="parameter">name</replaceable> SET SCHEMA <replaceable class="parameter">new_schema</replaceable> ALTER VIEW [ IF EXISTS ] <replaceable class="parameter">name</replaceable> SET ( <replaceable class="parameter">view_option_name</replaceable> [= <replaceable class="parameter">view_option_value</replaceable>] [, ... ] ) ALTER VIEW [ IF EXISTS ] <replaceable class="parameter">name</replaceable> RESET ( <replaceable class="parameter">view_option_name</replaceable> [, ... ] ) + +<phrase>where <replaceable class="parameter">view_option_name</replaceable> can be one of:</phrase> + + security_barrier [ <replaceable class="parameter">boolean</replaceable> ] + check_option [ <replaceable class="parameter">text</replaceable> (<literal>local</literal> or <literal>cascaded</literal>) ] </synopsis> </refsynopsisdiv> |
