Re: PQfinish(const PGconn *conn) question - Mailing list pgsql-hackers

From Tom Lane
Subject Re: PQfinish(const PGconn *conn) question
Date
Msg-id 7372.984160227@sss.pgh.pa.us
Whole thread Raw
In response to PQfinish(const PGconn *conn) question  (Boulat Khakimov <boulat@inet-interactif.com>)
List pgsql-hackers
Boulat Khakimov <boulat@inet-interactif.com> writes:
> I'm wondering how safe it is to pass an uninitialized conn to
> PQfinish....

You can pass a NULL pointer to PQfinish safely, if that's what you
meant.  Passing a pointer to uninitialized memory seems like a bad
idea.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: AW: AW: WAL does not recover gracefully from out-of-dis k-sp ace
Next
From: Zeugswetter Andreas SB
Date:
Subject: AW: AW: AW: WAL does not recover gracefully from out-of -dis k-sp ace