pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Howe <howe@carcass.dhs.org>
To: pgsql-docs@postgresql.org
Subject: Probable error on docs
Date: Mon, 18 Dec 2000 13:45:46 -0200
Message-ID: <91lbbp$vfe$1@news.tht.net> (raw)

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.







view thread (2+ messages)  latest in thread

Message-ID: <91lbbp$vfe$1@news.tht.net>
Permalink:  ../91lbbp$vfe$1@news.tht.net/
Also on:    postgresql.org/message-id/91lbbp$vfe$1@news.tht.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: howe@carcass.dhs.org
  Subject: Re: Probable error on docs
  In-Reply-To: <91lbbp$vfe$1@news.tht.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox