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