pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tambet Matiisen <t.matiisen@aprote.ee>
Cc: pgsql-sql@postgresql.org
Subject: Re: calling function from rule
Date: Thu, 23 Jan 2003 10:30:00 -0500
Message-ID: <26021.1043335800@sss.pgh.pa.us> (raw)
In-Reply-To: <81132473206F3A46A72BD6116E1A06AE1B14CB@black.aprote.com>
References: <81132473206F3A46A72BD6116E1A06AE1B14CB@black.aprote.com>

"Tambet Matiisen" <t.matiisen@aprote.ee> writes:
> I have a view and update rule on it, which updates another table. Now I would like to call a function, after update of the table is done. Also the function must be called in the same transaction as update. I tried to define an additional update rule on the view, but doing a SELECT in update rule spoils the affected records count:

Try 7.3, we changed the rules about returned records count.
http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/rules-status.html

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <26021.1043335800@sss.pgh.pa.us>
Permalink:  ../26021.1043335800@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26021.1043335800@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, t.matiisen@aprote.ee
  Subject: Re: calling function from rule
  In-Reply-To: <26021.1043335800@sss.pgh.pa.us>

* 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