~vcs-imports/mammoth-replicator/trunk

« back to all changes in this revision

Viewing changes to doc/src/sgml/ref/drop_rule.sgml

  • Committer: alvherre
  • Date: 2005-12-16 21:24:52 UTC
  • Revision ID: svn-v4:db760fc0-0f08-0410-9d63-cc6633f64896:trunk:1
Initial import of the REL8_0_3 sources from the Pgsql CVS repository.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!--
 
2
$PostgreSQL: pgsql/doc/src/sgml/ref/drop_rule.sgml,v 1.20 2003-11-29 19:51:38 pgsql Exp $
 
3
PostgreSQL documentation
 
4
-->
 
5
 
 
6
<refentry id="SQL-DROPRULE">
 
7
 <refmeta>
 
8
  <refentrytitle id="SQL-DROPRULE-TITLE">DROP RULE</refentrytitle>
 
9
  <refmiscinfo>SQL - Language Statements</refmiscinfo>
 
10
 </refmeta>
 
11
 
 
12
 <refnamediv>
 
13
  <refname>DROP RULE</refname>
 
14
  <refpurpose>remove a rewrite rule</refpurpose>
 
15
 </refnamediv>
 
16
 
 
17
 <indexterm zone="sql-droprule">
 
18
  <primary>DROP RULE</primary>
 
19
 </indexterm>
 
20
 
 
21
 <refsynopsisdiv>
 
22
<synopsis>
 
23
DROP RULE <replaceable class="PARAMETER">name</replaceable> ON <replaceable class="PARAMETER">relation</replaceable> [ CASCADE | RESTRICT ]
 
24
</synopsis>
 
25
 </refsynopsisdiv>
 
26
 
 
27
 <refsect1>
 
28
  <title>Description</title>
 
29
 
 
30
  <para>
 
31
   <command>DROP RULE</command> drops a rewrite rule.
 
32
  </para>
 
33
 </refsect1>
 
34
 
 
35
 <refsect1>
 
36
  <title>Parameters</title>
 
37
 
 
38
  <variablelist>
 
39
   <varlistentry>
 
40
    <term><replaceable class="parameter">name</replaceable></term>
 
41
    <listitem>
 
42
     <para>
 
43
      The name of the rule to drop.
 
44
     </para>
 
45
    </listitem>
 
46
   </varlistentry>
 
47
 
 
48
   <varlistentry>
 
49
    <term><replaceable class="parameter">relation</replaceable></term>
 
50
    <listitem>
 
51
     <para>
 
52
      The name (optionally schema-qualified) of the table or view that
 
53
      the rule applies to.
 
54
     </para>
 
55
    </listitem>
 
56
   </varlistentry>
 
57
 
 
58
   <varlistentry>
 
59
    <term><literal>CASCADE</literal></term>
 
60
    <listitem>
 
61
     <para>
 
62
      Automatically drop objects that depend on the rule.
 
63
     </para>
 
64
    </listitem>
 
65
   </varlistentry>
 
66
 
 
67
   <varlistentry>
 
68
    <term><literal>RESTRICT</literal></term>
 
69
    <listitem>
 
70
     <para>
 
71
      Refuse to drop the rule if any objects depend on it.  This is
 
72
      the default.
 
73
     </para>
 
74
    </listitem>
 
75
   </varlistentry>
 
76
  </variablelist>
 
77
 </refsect1>
 
78
 
 
79
 <refsect1>
 
80
  <title>Examples</title>
 
81
 
 
82
  <para>
 
83
   To drop the rewrite rule <literal>newrule</literal>:
 
84
 
 
85
<programlisting>
 
86
DROP RULE newrule ON mytable;
 
87
</programlisting>
 
88
  </para>
 
89
 </refsect1>
 
90
 
 
91
 <refsect1>
 
92
  <title>Compatibility</title>
 
93
 
 
94
  <para>
 
95
   There is no <command>DROP RULE</command> statement in the SQL standard.
 
96
  </para>
 
97
 </refsect1>
 
98
 
 
99
 <refsect1>
 
100
  <title>See Also</title>
 
101
 
 
102
  <simplelist type="inline">
 
103
   <member><xref linkend="sql-createrule" endterm="sql-createrule-title"></member>
 
104
  </simplelist>
 
105
 </refsect1>
 
106
 
 
107
</refentry>
 
108
 
 
109
<!-- Keep this comment at the end of the file
 
110
Local variables:
 
111
mode: sgml
 
112
sgml-omittag:nil
 
113
sgml-shorttag:t
 
114
sgml-minimize-attributes:nil
 
115
sgml-always-quote-attributes:t
 
116
sgml-indent-step:1
 
117
sgml-indent-data:t
 
118
sgml-parent-document:nil
 
119
sgml-default-dtd-file:"../reference.ced"
 
120
sgml-exposed-tags:nil
 
121
sgml-local-catalogs:"/usr/lib/sgml/catalog"
 
122
sgml-local-ecat-files:nil
 
123
End:
 
124
-->