Re: [HACKERS] send Describe Portal message in PQsendPrepare

2013-02-12 Thread Manlio Perillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Il 11/02/2013 22:39, Tom Lane ha scritto: > Manlio Perillo writes: >> What is the reason why PQsendPrepare function does not send a >> Describe Portal message? > > That would add a round trip, no? > Well, no. An extra round trip is required with c

Re: [HACKERS] send Describe Portal message in PQsendPrepare

2013-02-11 Thread Tom Lane
Manlio Perillo 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

[HACKERS] send Describe Portal message in PQsendPrepare

2013-02-11 Thread Manlio Perillo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi. What is the reason why PQsendPrepare function does not send a Describe Portal message? Just as a proof of concept, I wrote a very simple patch, attached, and it *seems* to work. Sending a Describe Portal message, make it possible for PQsendPrepa