mirror of
https://github.com/postgres/postgres.git
synced 2025-05-01 01:04:50 +03:00
doc: Improve CREATE VIEW / WITH documentation
Similar to 590eb0c14eebe834f716721a9659b77899cf3084, remove the options list from the synopsis and elaborate in the main description.
This commit is contained in:
parent
f7102b0463
commit
5bd91e3a83
@ -25,11 +25,6 @@ CREATE [ OR REPLACE ] [ TEMP | TEMPORARY ] [ RECURSIVE ] VIEW <replaceable class
|
||||
[ WITH ( <replaceable class="PARAMETER">view_option_name</replaceable> [= <replaceable class="PARAMETER">view_option_value</replaceable>] [, ... ] ) ]
|
||||
AS <replaceable class="PARAMETER">query</replaceable>
|
||||
[ WITH [ CASCADED | LOCAL ] CHECK OPTION ]
|
||||
|
||||
<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>
|
||||
|
||||
@ -131,17 +126,7 @@ CREATE VIEW <replaceable>name</> AS WITH RECURSIVE <replaceable>name</> (<replac
|
||||
|
||||
<variablelist>
|
||||
<varlistentry>
|
||||
<term><literal>security_barrier(boolean)</literal></term>
|
||||
<listitem>
|
||||
<para>
|
||||
This should be used if the view is intended to provide row-level
|
||||
security. See <xref linkend="rules-privileges"> for full details.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><literal>check_option(text)</literal></term>
|
||||
<term><literal>check_option</literal> (<type>string</type>)</term>
|
||||
<listitem>
|
||||
<para>
|
||||
This parameter may be either <literal>local</> or
|
||||
@ -152,6 +137,16 @@ CREATE VIEW <replaceable>name</> AS WITH RECURSIVE <replaceable>name</> (<replac
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><literal>security_barrier</literal> (<type>string</type>)</term>
|
||||
<listitem>
|
||||
<para>
|
||||
This should be used if the view is intended to provide row-level
|
||||
security. See <xref linkend="rules-privileges"> for full details.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
</variablelist>
|
||||
</para>
|
||||
</listitem>
|
||||
|
Loading…
x
Reference in New Issue
Block a user