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

From Stephen Frost
Subject Re: psql's is_select_command is naive
Date
Msg-id 20100527021946.GJ21875@tamriel.snowman.net
Whole thread Raw
In response to psql's is_select_command is naive  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
* Robert Haas (robertmhaas@gmail.com) wrote:
> For now, we can probably get by with just adding those to the list of
> things it checks for.  But I wonder what we'll do about this if we
> ever get CTEs for insert/update/delete statements...  you'd have to
> parse the whole darn thing to figure out whether it was WITH...SELECT
> or WITH...INSERT or WITH...INSERT...RETURNING.

Would be nice if it could just ask the backend if it's planning to send
back some data. :)
Stephen

pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: exporting raw parser
Next
From: Tom Lane
Date:
Subject: Re: libpq should not be using SSL_CTX_set_client_cert_cb