1999-07-22 17:09:15 +02:00
|
|
|
<!--
|
2002-05-18 17:44:48 +02:00
|
|
|
$Header: /cvsroot/pgsql/doc/src/sgml/ref/drop_rule.sgml,v 1.15 2002/05/18 15:44:47 petere Exp $
|
2001-12-08 04:24:40 +01:00
|
|
|
PostgreSQL documentation
|
1999-07-22 17:09:15 +02:00
|
|
|
-->
|
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<refentry id="SQL-DROPRULE">
|
|
|
|
<refmeta>
|
2002-04-21 21:02:39 +02:00
|
|
|
<refentrytitle id="SQL-DROPRULE-TITLE">DROP RULE</refentrytitle>
|
1999-07-06 19:16:42 +02:00
|
|
|
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
|
|
|
</refmeta>
|
|
|
|
<refnamediv>
|
|
|
|
<refname>
|
1998-09-07 17:53:12 +02:00
|
|
|
DROP RULE
|
1999-07-06 19:16:42 +02:00
|
|
|
</refname>
|
|
|
|
<refpurpose>
|
2001-09-03 14:57:50 +02:00
|
|
|
remove a rewrite rule
|
1999-07-06 19:16:42 +02:00
|
|
|
</refpurpose>
|
1998-12-29 03:24:47 +01:00
|
|
|
</refnamediv>
|
1999-07-06 19:16:42 +02:00
|
|
|
<refsynopsisdiv>
|
|
|
|
<refsynopsisdivinfo>
|
|
|
|
<date>1998-09-22</date>
|
|
|
|
</refsynopsisdivinfo>
|
|
|
|
<synopsis>
|
2002-04-18 22:01:11 +02:00
|
|
|
DROP RULE <replaceable class="PARAMETER">name</replaceable> ON <replaceable class="PARAMETER">relation</replaceable>
|
1999-07-06 19:16:42 +02:00
|
|
|
</synopsis>
|
1998-09-07 17:53:12 +02:00
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<refsect2 id="R2-SQL-DROPRULE-1">
|
|
|
|
<refsect2info>
|
|
|
|
<date>1998-09-22</date>
|
|
|
|
</refsect2info>
|
|
|
|
<title>
|
1998-09-07 17:53:12 +02:00
|
|
|
Inputs
|
1999-07-06 19:16:42 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable class="parameter">name</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
The name of an existing rule to drop.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2002-04-18 22:01:11 +02:00
|
|
|
<varlistentry>
|
|
|
|
<term><replaceable class="parameter">relation</replaceable></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2002-04-23 04:07:16 +02:00
|
|
|
The name (optionally schema-qualified) of the relation the rule
|
|
|
|
applies to.
|
2002-04-18 22:01:11 +02:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
1999-07-06 19:16:42 +02:00
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect2>
|
|
|
|
|
|
|
|
<refsect2 id="R2-SQL-DROPRULE-2">
|
|
|
|
<refsect2info>
|
|
|
|
<date>1998-09-22</date>
|
|
|
|
</refsect2info>
|
|
|
|
<title>
|
1998-09-07 17:53:12 +02:00
|
|
|
Outputs
|
1999-07-06 19:16:42 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
|
|
|
<term><computeroutput>
|
2002-05-18 17:44:48 +02:00
|
|
|
DROP RULE
|
1999-07-06 19:16:42 +02:00
|
|
|
</computeroutput></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2000-10-05 21:48:34 +02:00
|
|
|
Message returned if successful.
|
1999-07-06 19:16:42 +02:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><computeroutput>
|
2002-04-18 22:01:11 +02:00
|
|
|
ERROR: Rule "<replaceable class="parameter">name</replaceable>" not found
|
1999-07-06 19:16:42 +02:00
|
|
|
</computeroutput></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
This message occurs if the specified rule does not exist.
|
1998-12-29 03:24:47 +01:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
1999-07-06 19:16:42 +02:00
|
|
|
</variablelist>
|
1998-12-29 03:24:47 +01:00
|
|
|
</para>
|
1999-07-06 19:16:42 +02:00
|
|
|
</refsect2>
|
|
|
|
</refsynopsisdiv>
|
|
|
|
|
|
|
|
<refsect1 id="R1-SQL-DROPRULE-1">
|
|
|
|
<refsect1info>
|
|
|
|
<date>1998-09-22</date>
|
|
|
|
</refsect1info>
|
|
|
|
<title>
|
1998-09-07 17:53:12 +02:00
|
|
|
Description
|
1999-07-06 19:16:42 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
1998-09-22 17:48:03 +02:00
|
|
|
<command>DROP RULE</command> drops a rule from the specified
|
2001-12-08 04:24:40 +01:00
|
|
|
<productname>PostgreSQL</productname> rule
|
|
|
|
system. <productname>PostgreSQL</productname>
|
1999-07-06 19:16:42 +02:00
|
|
|
will immediately cease enforcing it and
|
1998-09-07 17:53:12 +02:00
|
|
|
will purge its definition from the system catalogs.
|
1999-07-06 19:16:42 +02:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<refsect2 id="R2-SQL-DROPRULE-3">
|
|
|
|
<refsect2info>
|
|
|
|
<date>1998-09-22</date>
|
|
|
|
</refsect2info>
|
|
|
|
<title>
|
1998-09-07 17:53:12 +02:00
|
|
|
Notes
|
1999-07-06 19:16:42 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
1998-09-22 17:48:03 +02:00
|
|
|
The <command>DROP RULE</command> statement is a
|
2001-12-08 04:24:40 +01:00
|
|
|
<productname>PostgreSQL</productname>
|
1998-09-07 17:53:12 +02:00
|
|
|
language extension.
|
1999-07-06 19:16:42 +02:00
|
|
|
</para>
|
1999-07-22 17:09:15 +02:00
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<para>
|
1998-09-22 17:48:03 +02:00
|
|
|
Refer to <command>CREATE RULE</command> for
|
1998-09-07 17:53:12 +02:00
|
|
|
information on how to create rules.
|
1999-07-06 19:16:42 +02:00
|
|
|
</para>
|
|
|
|
</refsect2>
|
1998-09-07 17:53:12 +02:00
|
|
|
</refsect1>
|
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<refsect1 id="R1-SQL-DROPRULE-2">
|
|
|
|
<title>
|
1998-09-07 17:53:12 +02:00
|
|
|
Usage
|
1999-07-06 19:16:42 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
1998-09-07 17:53:12 +02:00
|
|
|
To drop the rewrite rule <literal>newrule</literal>:
|
1999-07-06 19:16:42 +02:00
|
|
|
|
|
|
|
<programlisting>
|
2002-04-18 22:01:11 +02:00
|
|
|
DROP RULE newrule ON mytable;
|
1999-07-06 19:16:42 +02:00
|
|
|
</programlisting>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
1998-09-07 17:53:12 +02:00
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<refsect1 id="R1-SQL-DROPRULE-3">
|
|
|
|
<title>
|
1998-09-07 17:53:12 +02:00
|
|
|
Compatibility
|
1999-07-06 19:16:42 +02:00
|
|
|
</title>
|
1999-07-22 17:09:15 +02:00
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<refsect2 id="R2-SQL-DROPRULE-5">
|
|
|
|
<refsect2info>
|
|
|
|
<date>1998-09-22</date>
|
|
|
|
</refsect2info>
|
|
|
|
<title>
|
1998-09-07 17:53:12 +02:00
|
|
|
SQL92
|
1999-07-06 19:16:42 +02:00
|
|
|
</title>
|
|
|
|
<para>
|
|
|
|
There is no <command>DROP RULE</command> in SQL92.
|
|
|
|
</para>
|
1998-09-07 17:53:12 +02:00
|
|
|
</refsect2>
|
|
|
|
</refsect1>
|
1999-07-06 19:16:42 +02:00
|
|
|
</refentry>
|
1998-09-07 17:53:12 +02:00
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
1999-07-06 19:16:42 +02:00
|
|
|
sgml-omittag:nil
|
1998-09-07 17:53:12 +02:00
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../reference.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:"/usr/lib/sgml/catalog"
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
-->
|