Re: psql's is_select_command is naive

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: psql's is_select_command is naive
Date: 2010-05-27 02:19:46
Message-ID: 20100527021946.GJ21875@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

* Robert Haas (robertmhaas(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2010-05-27 02:21:13 Re: libpq should not be using SSL_CTX_set_client_cert_cb
Previous Message Tatsuo Ishii 2010-05-27 02:16:58 Re: exporting raw parser