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 12:00:52 -0500
Message-ID: <26610.1043341252@sss.pgh.pa.us> (raw)
In-Reply-To: <81132473206F3A46A72BD6116E1A06AE1B14CC@black.aprote.com>
References: <81132473206F3A46A72BD6116E1A06AE1B14CC@black.aprote.com>

"Tambet Matiisen" <t.matiisen@aprote.ee> writes:
>> Try 7.3, we changed the rules about returned records count.

> I have 7.3. When rule and action are the same, everything works fine.
> Doing an insert in update rule and opposite are OK too. Problem is,
> when I do select in insert/update/delete rule. Then the result of
> select is returned instead of command status, even if the select
> is done in non-instead rule and there is unconditional instead rule.

Oh, I think your complaint is really about the fact that psql doesn't
print the command status if it got any tuples (or even just a tuple
descriptor) in the result series.  AFAICT the information returned by
the backend is sensible in this situation: the "UPDATE 1" status message
*is* returned and is available from PQcmdStatus.  psql is just choosing
not to print it.  I'm not sure that that's wrong, though.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <26610.1043341252@sss.pgh.pa.us>
Permalink:  ../26610.1043341252@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26610.1043341252@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: <26610.1043341252@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