~ubuntu-branches/ubuntu/utopic/pgadmin3/utopic

« back to all changes in this revision

Viewing changes to docs/en_US/pg/sql-droprule.html

  • Committer: Bazaar Package Importer
  • Author(s): Raphael Enrici, src/frm/frmBackup.cpp, debian/control
  • Date: 2006-10-06 21:06:48 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 edgy)
  • Revision ID: james.westby@ubuntu.com-20061006210648-nscnazrse5jbwswf
* Patched frmBackup.cpp to ensure the schema is specified when backing up
  individual tables. (Closes: #387256)
  [src/frm/frmBackup.cpp]
* Cleaned up and updated description of the package. (Closes: #379188)
  [debian/control]

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
<title>DROP RULE</title>
5
5
<link rel="stylesheet" href="stylesheet.css" type="text/css">
6
6
<link rev="made" href="pgsql-docs@postgresql.org">
7
 
<meta name="generator" content="DocBook XSL Stylesheets V1.64.1">
8
 
<link rel="home" href="index.html" title="PostgreSQL 8.0.0beta5 Documentation">
 
7
<meta name="generator" content="DocBook XSL Stylesheets V1.70.0">
 
8
<link rel="start" href="index.html" title="PostgreSQL 8.1.4 Documentation">
9
9
<link rel="up" href="sql-commands.html" title="SQL Commands">
10
 
<link rel="previous" href="sql-dropopclass.html" title="DROP OPERATOR CLASS">
 
10
<link rel="prev" href="sql-droprole.html" title="DROP ROLE">
11
11
<link rel="next" href="sql-dropschema.html" title="DROP SCHEMA">
 
12
<link rel="copyright" href="ln-legalnotice.html" title="Legal Notice">
12
13
</head>
13
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en">
14
 
<a name="sql-droprule"></a><div class="titlepage">
15
 
<div></div>
16
 
<div></div>
17
 
</div>
 
15
<a name="sql-droprule"></a><div class="titlepage"></div>
18
16
<div class="refnamediv">
19
17
<h2>Name</h2>
20
18
<p>DROP RULE &#8212; remove a rewrite rule</p>
21
19
</div>
22
 
<a name="id2684974"></a><div class="refsynopsisdiv">
 
20
<a name="id772159"></a><div class="refsynopsisdiv">
23
21
<h2>Synopsis</h2>
24
 
<pre class="synopsis">DROP RULE <i class="replaceable"><tt>name</tt></i> ON <i class="replaceable"><tt>relation</tt></i> [ CASCADE | RESTRICT ]</pre>
 
22
<pre class="synopsis">DROP RULE <em class="replaceable"><code>name</code></em> ON <em class="replaceable"><code>relation</code></em> [ CASCADE | RESTRICT ]</pre>
25
23
</div>
26
24
<div class="refsect1" lang="en">
27
 
<a name="id2685002"></a><h2>Description</h2>
28
 
<p>   <tt class="command">DROP RULE</tt> drops a rewrite rule.
 
25
<a name="id772190"></a><h2>Description</h2>
 
26
<p>   <code class="command">DROP RULE</code> drops a rewrite rule.
29
27
  </p>
30
28
</div>
31
29
<div class="refsect1" lang="en">
32
 
<a name="id2685014"></a><h2>Parameters</h2>
 
30
<a name="id772204"></a><h2>Parameters</h2>
33
31
<div class="variablelist"><dl>
34
 
<dt><span class="term"><i class="replaceable"><tt>name</tt></i></span></dt>
 
32
<dt><span class="term"><em class="replaceable"><code>name</code></em></span></dt>
35
33
<dd><p>      The name of the rule to drop.
36
34
     </p></dd>
37
 
<dt><span class="term"><i class="replaceable"><tt>relation</tt></i></span></dt>
 
35
<dt><span class="term"><em class="replaceable"><code>relation</code></em></span></dt>
38
36
<dd><p>      The name (optionally schema-qualified) of the table or view that
39
37
      the rule applies to.
40
38
     </p></dd>
41
 
<dt><span class="term"><tt class="literal">CASCADE</tt></span></dt>
 
39
<dt><span class="term"><code class="literal">CASCADE</code></span></dt>
42
40
<dd><p>      Automatically drop objects that depend on the rule.
43
41
     </p></dd>
44
 
<dt><span class="term"><tt class="literal">RESTRICT</tt></span></dt>
 
42
<dt><span class="term"><code class="literal">RESTRICT</code></span></dt>
45
43
<dd><p>      Refuse to drop the rule if any objects depend on it.  This is
46
44
      the default.
47
45
     </p></dd>
48
46
</dl></div>
49
47
</div>
50
48
<div class="refsect1" lang="en">
51
 
<a name="id2685064"></a><h2>Examples</h2>
52
 
<p>   To drop the rewrite rule <tt class="literal">newrule</tt>:
 
49
<a name="id772260"></a><h2>Examples</h2>
 
50
<p>   To drop the rewrite rule <code class="literal">newrule</code>:
53
51
 
54
52
</p>
55
53
<pre class="programlisting">DROP RULE newrule ON mytable;</pre>
57
55
  </p>
58
56
</div>
59
57
<div class="refsect1" lang="en">
60
 
<a name="id2685082"></a><h2>Compatibility</h2>
61
 
<p>   There is no <tt class="command">DROP RULE</tt> statement in the SQL standard.
 
58
<a name="id772280"></a><h2>Compatibility</h2>
 
59
<p>   There is no <code class="command">DROP RULE</code> statement in the SQL standard.
62
60
  </p>
63
61
</div>
64
62
<div class="refsect1" lang="en">
65
 
<a name="id2685095"></a><h2>See Also</h2>
 
63
<a name="id772294"></a><h2>See Also</h2>
66
64
<span class="simplelist"><a href="sql-createrule.html">CREATE RULE</a></span>
67
65
</div>
68
66
</div></body>