Re: [PATCH] Provide rowcount for utility SELECTs
Peter Eisentraut <peter_e@gmx.net>
From: Peter Eisentraut <peter_e@gmx.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Boszormenyi Zoltan <zb@cybertec.at>,
Hans-Juergen Schoenig <hs@cybertec.at>, Pavel Stehule <pavel.stehule@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2009-12-28T16:14:04Z
Lists: pgsql-hackers
On mån, 2009-12-28 at 11:08 -0500, Tom Lane wrote: > Boszormenyi Zoltan <zb@cybertec.at> writes: > > Hans-Juergen Schoenig írta: > >> just as a background info: this will have some positive side effects > >> on embedded C programs which should be portable. > > > Not just embedded C programs, every driver that's > > based on libpq and used PQcmdTuples() will > > automatically see the benefit. > > And, by the same token, the scope for possibly breaking clients is nearly > unlimited ... Why is that? Are there programs out there that expect PQcmdTuples() to return something that is *not* the tuple count for these commands and will violently misbehave otherwise?