Re: psql's is_select_command is naive - Mailing list pgsql-hackers

From Robert Haas
Subject Re: psql's is_select_command is naive
Date
Msg-id AANLkTin_kW-nlZWEpF_X49RBtsc7sNEP_u-QwWz2zsDP@mail.gmail.com
Whole thread Raw
In response to Re: psql's is_select_command is naive  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: psql's is_select_command is naive
List pgsql-hackers
On Wed, May 26, 2010 at 10:35 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Robert Haas <robertmhaas@gmail.com> writes:
>> It knows that queries beginning with "select" or "values" are select
>> commands, but it seems not to be clued in about "table" and "with".
>
> What we really ought to do IMO is throw out the entire current
> implementation of fetch_count.  If libpq exposed access to the
> protocol-level fetch count, we could implement it without this
> cursor kluge.

I suspect that would make a lot of people very happy.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: psql's is_select_command is naive
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Synchronization levels in SR