Re: libpq and prepared statements progress for 8.0 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: libpq and prepared statements progress for 8.0
Date
Msg-id 11547.1095692570@sss.pgh.pa.us
Whole thread Raw
In response to Re: libpq and prepared statements progress for 8.0  (Abhijit Menon-Sen <ams@oryx.com>)
Responses Re: libpq and prepared statements progress for 8.0  (Abhijit Menon-Sen <ams@oryx.com>)
List pgsql-hackers
Abhijit Menon-Sen <ams@oryx.com> writes:
>> PGresult *
>> PQprepare(PGconn *conn,
>>           const char *stmtName,
>>           const char *query,
>>           int nParams,
>>           const Oid *paramTypes);

> Should I go ahead and do that?

(1) What about preparing an unnamed statement ... will you allow
stmtName = NULL to mean that?  (Actually it might be that stmtName = ""
will cover this, I'm too lazy to check the backend code right now.)
You do need to allow access to the unnamed statement because of 
Oliver Jowett's recent efficiency hacks.

(2) What about discovering the actually resolved parameter types?
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: No parameters support in "create user"?
Next
From: Abhijit Menon-Sen
Date:
Subject: Re: libpq and prepared statements progress for 8.0