send Describe Portal message in PQsendPrepare

From: Manlio Perillo <manlio(dot)perillo(at)gmail(dot)com>
To: PGSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: send Describe Portal message in PQsendPrepare
Date: 2013-02-11 20:08:34
Message-ID: 51194FC2.5060800@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

-----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 PQsendPrepare
function to *return* a PGresult with more useful informations, instead
of just the result status.

Thanks Manlio Perillo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlEZT8IACgkQscQJ24LbaUT0VwCcCGKGD6CYrb53B/z+1SdB8vX5
cWkAnjOkSxCVFRo32qzIegY1UhddxBcI
=D+Qj
-----END PGP SIGNATURE-----

Attachment Content-Type Size
prepare-describe.patch text/x-diff 2.8 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2013-02-11 20:15:21 parser_analyze freeing memory which is later referenced
Previous Message Pavel Stehule 2013-02-11 19:49:51 Re: performance regression in 9.2 CTE with SRF function