Skip site navigation (1) Skip section navigation (2)

Re: Probable error on docs

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Steve Howe <howe(at)carcass(dot)dhs(dot)org>
Cc: pgsql-docs(at)postgresql(dot)org
Subject: Re: Probable error on docs
Date: 2000-12-20 02:52:09
Message-ID: 200012200252.VAA15229@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-docs
I think the docs are correct.  showlace_log holds changes to
shoelace_data.

> Hi Folks,
> 
> 
>         At programmer\rules1139.htm, (Rules on INSERT, UPDATE and DELETE),
> there are the following statments:
> 
> CREATE TABLE shoelace_log (
>         sl_name    char(10),      -- shoelace changed
>         sl_avail   integer,       -- new available value
>         log_who    name,          -- who did it
>         log_when   datetime       -- when
>     );
> 
>     CREATE RULE log_shoelace AS ON UPDATE TO shoelace_data
>         WHERE NEW.sl_avail != OLD.sl_avail
>         DO INSERT INTO shoelace_log VALUES (
>                                         NEW.sl_name,
>                                         NEW.sl_avail,
>                                         getpgusername(),
>                                         'now'::text
>                                     );
> 
> In the RULE statment (the second one) there is a reference to a
> [shoelace_data] relation. Shouldn't it be the name of the table just
> created, [shoelace_log] ?
> In the RULE statment there is also a refernce to [shoelace_log].
> I'm using the docs from the last snapshot. Files are dated 05/08/2000.
> 
> 
> Best Regards,
> Howe.
> 
> 
> 
> 
> 


-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-docs by date

Next:From: Bruce MomjianDate: 2000-12-20 03:03:15
Subject: Re: [HACKERS] Re: 7.1 features list
Previous:From: Peter EisentrautDate: 2000-12-19 23:12:11
Subject: Re: Generating HISTORY file

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group