Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id eBJDB4678928 for ; Tue, 19 Dec 2000 08:11:04 -0500 (EST) (envelope-from pgsql-docs-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eBIG7O693694 for ; Mon, 18 Dec 2000 11:07:24 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.9.3/8.9.3) id KAA32241 for pgsql-docs@postgresql.org; Mon, 18 Dec 2000 10:43:54 -0500 (EST) (envelope-from news) X-Authentication-Warning: news.tht.net: news set sender to using -f From: "Steve Howe" X-Newsgroups: comp.databases.postgresql.docs Subject: Probable error on docs Date: Mon, 18 Dec 2000 13:45:46 -0200 Organization: ACME Lines: 35 Message-ID: <91lbbp$vfe$1@news.tht.net> X-Trace: news.tht.net 977154234 32238 200.176.49.178 (18 Dec 2000 15:43:54 GMT) X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: pgsql-docs@postgresql.org X-Archive-Number: 200012/58 X-Sequence-Number: 105 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.