Re: PQfinish(const PGconn *conn) question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Boulat Khakimov <boulat(at)inet-interactif(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: PQfinish(const PGconn *conn) question
Date: 2001-03-09 17:50:27
Message-ID: 7372.984160227@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Boulat Khakimov <boulat(at)inet-interactif(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB 2001-03-09 18:00:04 AW: AW: AW: WAL does not recover gracefully from out-of -dis k-sp ace
Previous Message Tom Lane 2001-03-09 17:48:39 Re: AW: AW: WAL does not recover gracefully from out-of-dis k-sp ace