Re: Rules - Mailing list pgsql-sql

From Jan Wieck
Subject Re: Rules
Date
Msg-id 200101022351.SAA12469@jupiter.jw.home
Whole thread Raw
In response to Rules  ("Peeter Smitt" <peeter.smitt@online.ee>)
List pgsql-sql
Peeter Smitt wrote:
> Hi
>
> I'm trying to make updateable view useing rules.
>
> CREATE RULE update_rule AS ON UPDATE TO table DO INSTEAD
>   SELECT fun1(new);
>
> Thing is that backend gives this error.
>   ERROR:  parser: parse error at or near ")"
>
> What i'm doing wrong? Are there any other ways to make updatebale multi-table views?
   There  are,  but you haven't read the documentation about the   rule system, which is a common mistake.
   Read chapter 8  of  the  PostgreSQL  Programmers  manual  for   details on how to setup updateable views.


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #




pgsql-sql by date:

Previous
From: jkakar@expressus.com
Date:
Subject: Weird problem with script...
Next
From: Tom Lane
Date:
Subject: Re: Weird problem with script...