Received: from hub.org.org (localhost [127.0.0.1]) by hub.org (8.10.1/8.11.0) with SMTP id e9QKlrU18037 for ; Thu, 26 Oct 2000 16:47:53 -0400 (EDT) (envelope-from pgsql-hackers-owner@hub.org) Received: from baby.dcc.dp.ua (baby.dcc.dp.ua [195.24.157.226]) by hub.org (8.10.1/8.11.0) with ESMTP id e9QIo3U44250; Thu, 26 Oct 2000 14:50:05 -0400 (EDT) (envelope-from vic@dcc.dp.ua) Received: from dcc.dp.ua (vic.dcc.intranet [192.168.83.246]) by baby.dcc.dp.ua (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id UAA13491; Thu, 26 Oct 2000 20:55:13 +0300 Message-ID: <39F87BEF.FA8C05D8@dcc.dp.ua> Date: Thu, 26 Oct 2000 21:46:07 +0300 From: Vic Organization: DCC X-Mailer: Mozilla 4.7 [ru] (Win95; I) X-Accept-Language: ru MIME-Version: 1.0 To: lockhart@alumni.caltech.edu CC: JanWieck@yahoo.com, pgsql-interfaces@postgresql.org, pgsql-hackers@postgresql.org Subject: Simple question about Postgress rule system and docs for it . Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-Archive-Number: 200010/1045 X-Sequence-Number: 8092 Hello! Its, may be ,little "gluk" in doc, - sources and docs and examples for Create Rule not correlated. Conctrento :)) -> В доке -> CREATE RULE example_1 AS ON UPDATE emp.salary WHERE old.name = "Joe" /* ^^^ */ DO UPDATE emp SET salary = new.salary WHERE emp.name = "Sam"; /* ^^^ - its maby type-bUg -> ON UPDATE TO )*/ And in sources........ /* ---------- * The current rewrite handler is known to work on relation level * rules only. And for SELECT events, it expects one non-nothing * action that is instead and returns exactly a tuple of the * rewritten relation. This restricts SELECT rules to views. * * Jan * ---------- */ if (event_obj->attrs) elog(ERROR, "attribute level rules currently not supported"); In result on all query, where after "ON" we put something as "emp.salary" , Postgres answer :ERROR: "attribute level rules currently not supported" But in docs CREATE RULE name AS ON event TO object [ WHERE condition ] DO [ INSTEAD ] [ action | NOTHING ] ..... ..... where --> object Object is either table or table.column. ^^^^^^^^^^^^^!!!!! 8-() И необходимость в таких правилах есть. In baglist-е (todo) i dont found anything about this trouble. This code,doc don't rewriten from version 6.4 - i diggin in several Suse Linux - distrib,sourses dowloaded from www.postgressql.org , and again see all aviable docs about rules. Waiting for any help.... ;) Sorry ,pls for my dirty english..... Vic