Re: libpq Describe Extension [WAS: Bytea and perl] - Mailing list pgsql-hackers

From Tom Lane
Subject Re: libpq Describe Extension [WAS: Bytea and perl]
Date
Msg-id 24329.1155930891@sss.pgh.pa.us
Whole thread Raw
In response to Re: libpq Describe Extension [WAS: Bytea and perl]  (Volkan YAZICI <yazicivo@ttnet.net.tr>)
List pgsql-hackers
Volkan YAZICI <yazicivo@ttnet.net.tr> writes:
> I've prepared a new patch that adds below commands to the libpq:

>   /* Accessor functions for PGresParamDesc field of PGresult. */
>   int PQnparams(const PGresult *res)
>   int PQparamType(const PGresult *res, int param_num)

>   /* Async functions. */
>   int PQsendDescribePrepared(PGconn *conn, const char *stmt)
>   int PQsendDescribePortal(PGconn *conn, const char *portal)

>   /* Synchronous ones. */
>   PGresult *PQdescribePrepared(PGconn *conn, const char *stmt)
>   PGresult *PQdescribePortal(PGconn *conn, const char *portal)

Applied with some small revisions to make it fit in better with the
existing libpq code (I don't think it desirable to have
copied-and-pasted versions of PQsendQueryStart, for instance).
I added some documentation also.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: pg_dump schema breakup
Next
From: Andrew Dunstan
Date:
Subject: Re: pg_dump schema breakup