mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Reword CREATE POLICY parameter descriptions
The parameter description for the using_expression and check_expression in CREATE POLICY were unclear and arguably included a typo. Clarify and improve the consistency of that language. Pointed out by Dean Rasheed.
This commit is contained in:
@ -158,7 +158,8 @@ CREATE POLICY <replaceable class="parameter">name</replaceable> ON <replaceable
|
|||||||
Any <acronym>SQL</acronym> conditional expression (returning
|
Any <acronym>SQL</acronym> conditional expression (returning
|
||||||
<type>boolean</type>). The conditional expression cannot contain
|
<type>boolean</type>). The conditional expression cannot contain
|
||||||
any aggregate or window functions. This expression will be added
|
any aggregate or window functions. This expression will be added
|
||||||
to queries to filter out the records which are visible to the query.
|
to queries that refer to the table if row level security is enabled,
|
||||||
|
and will allow access to rows matching the expression.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
@ -168,11 +169,12 @@ CREATE POLICY <replaceable class="parameter">name</replaceable> ON <replaceable
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Any <acronym>SQL</acronym> conditional expression (returning
|
Any <acronym>SQL</acronym> conditional expression (returning
|
||||||
<type>boolean</type>). The condition expression cannot contain
|
<type>boolean</type>). The conditional expression cannot contain
|
||||||
any aggregate or window functions. This expression will be added
|
any aggregate or window functions. This expression will be used with
|
||||||
to queries which are attempting to add records to the table as
|
<command>INSERT</command> and <command>UPDATE</command> queries against
|
||||||
with-check options, and an error will be thrown if this condition
|
the table if row level security is enabled and an error will be thrown
|
||||||
returns false for any records being added.
|
if the expression evaluates to false for any of the records inserted
|
||||||
|
or any of the records which result from the update.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
Reference in New Issue
Block a user