X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 431FF9DC829 for ; Sun, 5 Feb 2006 09:20:56 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 05382-08 for ; Sun, 5 Feb 2006 09:20:59 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id D441E9DC813 for ; Sun, 5 Feb 2006 09:20:53 -0400 (AST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by svr4.postgresql.org (Postfix) with ESMTP id 52BC15AF092 for ; Sun, 5 Feb 2006 13:20:58 +0000 (GMT) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1F5jow-0004zz-IG for pgsql-sql@postgresql.org; Sun, 05 Feb 2006 14:20:50 +0100 Received: from 85.187.136.11 ([85.187.136.11]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Feb 2006 14:20:50 +0100 Received: from milen by 85.187.136.11 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 05 Feb 2006 14:20:50 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-sql@postgresql.org From: "Milen A. Radev" Subject: Re: new rule syntax? Date: Sun, 05 Feb 2006 15:10:23 +0200 Lines: 35 Message-ID: <43E5F93F.8000503@radev.net> References: <43E5E8D2.6020502@lake-lotawana.mo.us> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 85.187.136.11 User-Agent: Mozilla Thunderbird 1.5 (Windows/20051201) In-Reply-To: <43E5E8D2.6020502@lake-lotawana.mo.us> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.373 required=5 tests=[AWL=0.120, RCVD_NUMERIC_HELO=1.253] X-Spam-Score: 1.373 X-Spam-Level: * X-Archive-Number: 200602/40 X-Sequence-Number: 24050 A. R. Van Hook написа: > I have two tables defined as: > checks > (ckid int NOT null PRIMARY KEY, > payto text, > notes text, > ckdate date, > printed int default 0, > tdate timestamp not null) > checkitems > (item int not null, > ckid int NOT null references checks, > itemtype int not null, > amt numeric(7,3), > primary key (item, ckid)) > > in previous versions (<8.1) the following rule declaration seemed to > work fine > create rule checks_d0 as > on delete to checks > do delete from checkitems > where ckid = checks.ckid; > in 8.1.2 I get > > ERROR: missing FROM-clause entry from table "checks" > > any idea? May be you are bitten by the change of the default value of "add_missing_from" setting (http://www.postgresql.org/docs/8.1/static/runtime-config-compatible.html#RUNTIME-CONFIG-COMPATIBLE-VERSION). -- Milen A. Radev