Re: [PATCHES] Patches to get number of tuples affected - Mailing list pgsql-hackers

From D'Arcy" "J.M." Cain
Subject Re: [PATCHES] Patches to get number of tuples affected
Date
Msg-id m10zPuc-0000dEC@druid.net
Whole thread Raw
In response to Re: [PATCHES] Patches to get number of tuples affected  (Michael Richards <miker@scifair.acadiau.ca>)
List pgsql-hackers
Thus spake Michael Richards
> > Why not overload PGTuples() instead (assuming it doesn't already do this)?

As mentioned in another posting, I meant PQntuples().

> Tuples returned tells you how many you can get using the getvalue series.
> If you tried that with an update, it core dumps. I think the two are
> really related, but fundamentally different.

I'm just thinking that it's easy for PQntuples() to tell what it has
to return and branch accordingly.  It just makes it easier to remember
the function.  No asking which get tuple count function works for update
and which for select.

-- 
D'Arcy J.M. Cain <darcy@{druid|vex}.net>   |  Democracy is three wolves
http://www.druid.net/darcy/                |  and a sheep voting on
+1 416 424 2871     (DoD#0082)    (eNTP)   |  what's for dinner.


pgsql-hackers by date:

Previous
From: "D'Arcy" "J.M." Cain
Date:
Subject: Re: [PATCHES] Patches to get number of tuples affected
Next
From: "Hub.Org News Admin"
Date:
Subject: ...