1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Fix create_rule is->as.

This commit is contained in:
Bruce Momjian
1999-02-02 17:46:17 +00:00
parent 7ab88a16a1
commit 8e958b8a38
6 changed files with 36 additions and 44 deletions

View File

@ -235,7 +235,7 @@ At the time of publication, the following platforms have been tested:
<ENTRY>x86</ENTRY>
<ENTRY>v6.4</ENTRY>
<ENTRY>1998-10-08</ENTRY>
<ENTRY>Mostly working with the Cygwin library. No DLLs yet.
<ENTRY>Working with the Cygwin library.
(<ulink url="mailto:Dan.Horak@email.cz">Horak Daniel</ulink>) </ENTRY>
</ROW>
</TBODY>
@ -251,11 +251,7 @@ confirmation of such at the time this list was compiled.
<para>
For <productname>Windows NT</productname>,
the server-side port of <productname>Postgres</productname> has recently been
accomplished. Check
<ulink url="http://www.askesis.nl/AskesisPostgresIndex.html">the Askesis Postgres Home Page</ulink>
for up to date information. You may also want to
look for possible patches on the
<ulink url="http://postgresql.org">Postgres web site</ulink>.
accomplished. The Cygnus library is required to compile it.
</para>
</note>
</sect1>

View File

@ -198,11 +198,11 @@ Without
<example>
<title>Example of a circular rewrite rule combination.</title>
<programlisting>
create rule bad_rule_combination_1 is
create rule bad_rule_combination_1 as
on select to EMP
do instead select to TOYEMP
create rule bad_rule_combination_2 is
create rule bad_rule_combination_2 as
on select to TOYEMP
do instead select to EMP
</programlisting>
@ -232,7 +232,7 @@ select * from EMP
Make Sam get the same salary adjustment as Joe:
<programlisting>
create rule example_1 is
create rule example_1 as
on update EMP.salary where current.name = "Joe"
do update EMP (salary = new.salary)
where EMP.name = "Sam"
@ -248,7 +248,7 @@ create rule example_1 is
<para>
Make Bill get Joe's salary when it is accessed:
<programlisting>
create rule example_2 is
create rule example_2 as
on select to EMP.salary
where current.name = "Bill"
do instead
@ -261,7 +261,7 @@ create rule example_2 is
department (<function>current_user</function> returns the name of
the current user):
<programlisting>
create rule example_3 is
create rule example_3 as
on select to EMP.salary
where current.dept = "shoe" and current_user = "Joe"
do instead nothing
@ -272,7 +272,7 @@ create rule example_3 is
<programlisting>
create TOYEMP(name = char16, salary = int4)
create rule example_4 is
create rule example_4 as
on select to TOYEMP
do instead
select (EMP.name, EMP.salary) from EMP
@ -282,7 +282,7 @@ create rule example_4 is
<para>
All new employees must make 5,000 or less
<programlisting>
create rule example_5 is
create rule example_5 as
on insert to EMP where new.salary > 5000
do update newset salary = 5000
</programlisting>