Re: send Describe Portal message in PQsendPrepare

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Manlio Perillo <manlio(dot)perillo(at)gmail(dot)com>
Cc: PGSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: send Describe Portal message in PQsendPrepare
Date: 2013-02-11 21:39:06
Message-ID: 29098.1360618746@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Manlio Perillo <manlio(dot)perillo(at)gmail(dot)com> writes:
> What is the reason why PQsendPrepare function does not send a
> Describe Portal message?

That would add a round trip, no?

> Sending a Describe Portal message, make it possible for PQsendPrepare
> function to *return* a PGresult with more useful informations, instead
> of just the result status.

That's *definitely* wrong, because the entire point of the PQsend
functions is they don't wait for a server response.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Phil Sorber 2013-02-11 21:42:02 Re: [PATCH] Add PQconninfoParseParams and PQconninfodefaultsMerge to libpq
Previous Message Heikki Linnakangas 2013-02-11 21:19:58 Re: [PATCH] Add PQconninfoParseParams and PQconninfodefaultsMerge to libpq