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

From Abhijit Menon-Sen
Subject Re: libpq and prepared statements progress for 8.0
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: libpq and prepared statements progress for 8.0  (Tom Lane <[email protected]>)
Responses Re: libpq and prepared statements progress for 8.0
List pgsql-hackers
At 2004-09-20 10:20:03 -0400, [email protected] wrote:
>
> What you should be concerned with right now is providing an API for
> Parse + Describe Statement, to substitute for the existing approach
> of setting up statement objects via PQexec("PREPARE foo ...").

Fair enough. That's why my original proposal was to add only a PQprepare
function, which should be a patch small enough to write, test, and maybe
apply before 8.0:

>   PGresult *
>   PQprepare(PGconn *conn,
>             const char *stmtName,
>             const char *query,
>             int nParams,
>             const Oid *paramTypes);

Should I go ahead and do that?

-- ams


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: libpq and prepared statements progress for 8.0
Next
From: Tom Lane
Date:
Subject: Re: schema level variables and deferrable unique constraints