Re: [PATCH] Provide rowcount for utility SELECTs

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Provide rowcount for utility SELECTs
Дата
Msg-id 11409.1262017219@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] Provide rowcount for utility SELECTs  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: [PATCH] Provide rowcount for utility SELECTs  (Boszormenyi Zoltan <zb@cybertec.at>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> On mån, 2009-12-28 at 11:08 -0500, Tom Lane wrote:
>> 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?

It's more the possibility of doing strcmp(tag, "SELECT") on the command
tag that worries me.  Describing the API change here as being limited
to PQcmdTuples misses the point rather completely: this is a protocol
change, and could break both clients and non-libpq driver libraries.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: updateMinRecoveryPoint bug?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Removing pg_migrator limitations