Re: libpq and prepared statements progress for 8.0

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Abhijit Menon-Sen <ams(at)oryx(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: libpq and prepared statements progress for 8.0
Date: 2004-09-20 15:02:50
Message-ID: 11547.1095692570@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

Abhijit Menon-Sen <ams(at)oryx(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Abhijit Menon-Sen 2004-09-20 15:23:37 Re: libpq and prepared statements progress for 8.0
Previous Message Tom Lane 2004-09-20 14:36:34 Re: No parameters support in "create user"?

Browse pgsql-patches by date

  From Date Subject
Next Message T E Schmitz 2004-09-20 15:14:46 COUNT(*) to find records which have a certain number of dependencies ?
Previous Message Abhijit Menon-Sen 2004-09-20 14:30:00 Re: libpq and prepared statements progress for 8.0