create rule syntax

Started by Kris Jurkaalmost 21 years ago4 messagesdocs
Jump to latest
#1Kris Jurka
books@ejurka.com

The manual shows slightly different variations for the create rule
syntax here and here:

http://www.postgresql.org/docs/8.0/static/rules-update.html
http://www.postgresql.org/docs/8.0/static/sql-createrule.html

The attached patches makes the first look like the second. The key change
is that it shows how multiple actions are delimited:

(actions) vs. (command ; command ...)

Kris Jurka

Attachments:

rule-syntax.patchtext/plain; charset=US-ASCII; name=rule-syntax.patchDownload+6-6
#2Neil Conway
neilc@samurai.com
In reply to: Kris Jurka (#1)
Re: create rule syntax

Kris Jurka wrote:

The manual shows slightly different variations for the create rule
syntax here and here:

http://www.postgresql.org/docs/8.0/static/rules-update.html
http://www.postgresql.org/docs/8.0/static/sql-createrule.html

The attached patches makes the first look like the second.

Applied, thanks.

-Neil

#3Robert Treat
xzilla@users.sourceforge.net
In reply to: Neil Conway (#2)
Re: create rule syntax

On Thursday 19 May 2005 21:37, Neil Conway wrote:

Kris Jurka wrote:

The manual shows slightly different variations for the create rule
syntax here and here:

http://www.postgresql.org/docs/8.0/static/rules-update.html
http://www.postgresql.org/docs/8.0/static/sql-createrule.html

The attached patches makes the first look like the second.

Applied, thanks.

Sorry I missed this before, but the first examples use of create rule on
*object* rather than *table* seems like something important enough to keep,
since obviously rules can be on more than just tables.

--
Robert Treat
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL

#4Neil Conway
neilc@samurai.com
In reply to: Robert Treat (#3)
Re: create rule syntax

Robert Treat wrote:

Sorry I missed this before, but the first examples use of create rule on
*object* rather than *table* seems like something important enough to keep,
since obviously rules can be on more than just tables.

I can't get too excited about this. CREATE RULE uses "table" as well,
and specifies that "table" really means "table or view". Similarly, the
INSERT syntax summary talks about "INSERT INTO table ...", although of
course you can insert into a view if the appropriate rule exists. A view
is a table in more ways than one...

-Neil