Re: Parsing the result of a function to a view in an INSERT statement.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Donald Fraser" <demolish(at)cwgsy(dot)net>
Cc: "[BUGS]" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Parsing the result of a function to a view in an INSERT statement.
Date: 2003-04-24 12:58:36
Message-ID: 12849.1051189116@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Donald Fraser" <demolish(at)cwgsy(dot)net> writes:
> I have observed that using a function to provide a default value on a colum=
> n of a view or attempting to parse the result of a function to a view in an=
> insert or update statement produces undesirable results.

Rules are macros and as such you have to think about multiple
evaluations of their arguments. You would probably be better off using
triggers for what you seem to be trying to accomplish.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2003-04-24 13:12:40 Re: PostgreSQL 7.3 Installation Error
Previous Message Donald Fraser 2003-04-24 11:05:38 Parsing the result of a function to a view in an INSERT statement.