Commit cbd96eff authored by Peter Eisentraut's avatar Peter Eisentraut

doc: Some improvements on CREATE POLICY and ALTER POLICY documentation

parent d0035257
...@@ -90,11 +90,8 @@ ALTER POLICY <replaceable class="parameter">name</replaceable> ON <replaceable c ...@@ -90,11 +90,8 @@ ALTER POLICY <replaceable class="parameter">name</replaceable> ON <replaceable c
<term><replaceable class="parameter">using_expression</replaceable></term> <term><replaceable class="parameter">using_expression</replaceable></term>
<listitem> <listitem>
<para> <para>
The USING expression for the policy. This expression will be added as a The <literal>USING</literal> expression for the policy.
security-barrier qualification to queries which use the table See <xref linkend="sql-createpolicy"> for details.
automatically. If multiple policies are being applied for a given
table then they are all combined and added using OR. The USING
expression applies to records which are being retrieved from the table.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
...@@ -103,11 +100,8 @@ ALTER POLICY <replaceable class="parameter">name</replaceable> ON <replaceable c ...@@ -103,11 +100,8 @@ ALTER POLICY <replaceable class="parameter">name</replaceable> ON <replaceable c
<term><replaceable class="parameter">check_expression</replaceable></term> <term><replaceable class="parameter">check_expression</replaceable></term>
<listitem> <listitem>
<para> <para>
The with-check expression for the policy. This expression will be The <literal>WITH CHECK</literal> expression for the policy.
added as a WITH CHECK OPTION qualification to queries which use the See <xref linkend="sql-createpolicy"> for details.
table automatically. If multiple policies are being applied for a
given table then they are all combined and added using OR. The WITH
CHECK expression applies to records which are being added to the table.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment