Re: Return PGresult - Mailing list pgsql-general

From Dave Smith
Subject Re: Return PGresult
Date
Msg-id 3976ED98.1111583B@candata.com
Whole thread Raw
In response to RE: Return PGresult  ("anuj" <Anuj@in-control.de>)
Responses RE: Return PGresult  ("anuj" <Anuj@in-control.de>)
List pgsql-general
anuj wrote:
>
> Thanks,I'm trying PGresult pointer to pointer.
> And Why don't PGresult pointer variable reqiure memory allocation (malloc()?
> Like /* resu =  (PGresult *)(malloc(sizeof(PGresult)); */
>
I believe that the  PQexec is doing the allocation. That is why it has
to be pointer to pointer.

--
Dave Smith
Candata Systems Ltd.
(416) 493-9020
dave@candata.com

pgsql-general by date:

Previous
From: "anuj"
Date:
Subject: RE: Return PGresult
Next
From: Philip Warner
Date:
Subject: pg_dump with BLOBs UPDATED