Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
ee27436f
Commit
ee27436f
authored
Mar 10, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable brackets in multi-statement rules, as discussed.
parent
f2050955
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
15 deletions
+11
-15
doc/src/sgml/ref/create_rule.sgml
doc/src/sgml/ref/create_rule.sgml
+10
-12
src/backend/parser/gram.y
src/backend/parser/gram.y
+1
-2
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+0
-1
No files found.
doc/src/sgml/ref/create_rule.sgml
View file @
ee27436f
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_rule.sgml,v 1.3
1 2002/01/24 18:28:15 tgl
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_rule.sgml,v 1.3
2 2002/03/10 06:00:13 momjian
Exp $
PostgreSQL documentation
-->
...
...
@@ -32,8 +32,6 @@ NOTHING
<replaceable class="parameter">query</replaceable>
|
( <replaceable class="parameter">query</replaceable> ; <replaceable class="parameter">query</replaceable> ... )
|
[ <replaceable class="parameter">query</replaceable> ; <replaceable class="parameter">query</replaceable> ... ]
</synopsis>
<refsect2 id="R2-SQL-CREATERULE-1">
...
...
@@ -177,15 +175,15 @@ CREATE
</para>
<para>
The <replaceable class="parameter">action</replaceable> part of the
rule
can consist of one or more queries. To write multiple queries, surround
them with either parentheses or square brackets. Such queries will b
e
performed in the specified order (whereas there are no guarantees about
the execution order of multiple rules for an object). Th
e
<replaceable class="parameter">action</replaceable> can also be NOTHING
indicating no action. Thus, a DO INSTEAD NOTHING rule suppresses the
original query from executing (when its condition is true); a DO NOTHING
rule
is useless.
The <replaceable class="parameter">action</replaceable> part of the
rule can consist of one or more queries. To write multiple queries,
surround them with parentheses. Such queries will be performed in th
e
specified order (whereas there are no guarantees about the execution
order of multiple rules for an object). The <replaceabl
e
class="parameter">action</replaceable> can also be NOTHING indicating
no action. Thus, a DO INSTEAD NOTHING rule suppresses the original
query from executing (when its condition is true); a DO NOTHING rule
is useless.
</para>
<para>
...
...
src/backend/parser/gram.y
View file @
ee27436f
...
...
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.2
89 2002/03/09 17:37:16 thomas
Exp $
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.2
90 2002/03/10 06:00:13 momjian
Exp $
*
* HISTORY
* AUTHOR DATE MAJOR EVENT
...
...
@@ -2841,7 +2841,6 @@ RuleStmt: CREATE RULE name AS
RuleActionList: NOTHING { $$ = NIL; }
| RuleActionStmt { $$ = makeList1($1); }
| '[' RuleActionMulti ']' { $$ = $2; }
| '(' RuleActionMulti ')' { $$ = $2; }
;
...
...
src/interfaces/ecpg/preproc/preproc.y
View file @
ee27436f
...
...
@@ -2153,7 +2153,6 @@ RuleStmt: CREATE RULE name AS
RuleActionList: NOTHING { $$ = make_str("nothing"); }
| RuleActionStmt { $$ = $1; }
| '[' RuleActionMulti ']' { $$ = cat_str(3, make_str("["), $2, make_str("]")); }
| '(' RuleActionMulti ')' { $$ = cat_str(3, make_str("("), $2, make_str(")")); }
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment