From: Josh Berkus <josh@agliodbs.com>
To: ?????? ?.?. <akulov@ien.ru>
To: pgsql-sql@postgresql.org
Subject: Re: Can I create working trigger on view
Date: Thu, 17 Oct 2002 22:27:14 -0700
Message-ID: <web-1790713@davinci.ethosmedia.com> (raw)
In-Reply-To: <1702162421.20021018090603@ien.ru>
Acue,
> Can I create working trigger on view?
>
> The problem is:
> I need a plpgsql function that execute on insert (or update,
> or delete) into view and knows the *OLD* and *NEW*.
> (Number of fields can be more than 16)
No. Create a RULE instead, which can be created on a view:
http://www.us.postgresql.org/users-lounge/docs/7.2/postgres/rules.html
BTW, you can increase the number of parameters accepted by functions by
re-compiling postgres. Also, 7.3 will have 32 as the default.
-Josh Berkus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, akulov@ien.ru
Subject: Re: Can I create working trigger on view
In-Reply-To: <web-1790713@davinci.ethosmedia.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox