Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4A054476AEE for ; Fri, 24 Jan 2003 04:07:55 -0500 (EST) Received: from ns.aprote.ee (ns.aprote.ee [80.235.78.106]) by postgresql.org (Postfix) with ESMTP id 2D0034772A8 for ; Fri, 24 Jan 2003 03:39:26 -0500 (EST) Received: Message by Barricade ns.aprote.ee with ESMTP id h0O8nkl23413 for ; Fri, 24 Jan 2003 10:49:46 +0200 X-MIMEOLE: Produced By Microsoft Exchange V6.0.5762.3 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: calling function from rule Date: Fri, 24 Jan 2003 10:39:26 +0200 Message-ID: <81132473206F3A46A72BD6116E1A06AE3EC047@black.aprote.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SQL] calling function from rule Thread-Index: AcLDAQvb6P5KTd1tQW+QwQDEaictYwAgqsMg From: "Tambet Matiisen" To: "Tom Lane" Cc: X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/391 X-Sequence-Number: 11256 > -----Original Message----- > From: Tom Lane [mailto:tgl@sss.pgh.pa.us] > Sent: Thursday, January 23, 2003 7:01 PM > To: Tambet Matiisen > Cc: pgsql-sql@postgresql.org > Subject: Re: [SQL] calling function from rule=20 >=20 >=20 > "Tambet Matiisen" writes: > >> Try 7.3, we changed the rules about returned records count. >=20 > > I have 7.3. When rule and action are the same, everything=20 > 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. >=20 > 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"=20 > status message > *is* returned and is available from PQcmdStatus. psql is=20 > just choosing > not to print it. I'm not sure that that's wrong, though. >=20 Thanks, I only tested it with psql and got worried. Tambet