Re: I want to send comments to the backend! - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: I want to send comments to the backend!
Date
Msg-id 25200.1048186822@sss.pgh.pa.us
Whole thread Raw
In response to Re: I want to send comments to the backend!  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: I want to send comments to the backend!  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: I want to send comments to the backend!  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-interfaces
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> Tom Lane wrote:
>> generalize it to understand about comments.  Right now seems to be a
>> fine time to think about this, in fact, given that we're hacking the
>> protocol anyway.

> Yes.

On third thought, though, it would be really trivial for
pg_exec_query_string to call NullCommand and fall out early if
pg_parse_query returns an empty list; it'd take one extra test for NIL,
which would be more than compensated for if we got rid of the strspn
test.  So maybe changing the backend is the best answer after all.
        regards, tom lane


pgsql-interfaces by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: I want to send comments to the backend!
Next
From: Bruce Momjian
Date:
Subject: Re: I want to send comments to the backend!