Thread: PQconnectdb crashes when it gets wrong parameter(s)

PQconnectdb crashes when it gets wrong parameter(s)

From
Stéphane Pinel
Date:
hello,

I'm experiencing crashes using libpq call to PQconnectdb when one of
the parameters is wrong (eg. login or password). if everything is
right, no crash. So I would like to trap this issue but it seems that
crash occurs during the PQconnectdb execution.

Any idea ?

Platform : MacOS X & Windows
PGSQL: 7.3.X

Thank you very much.

Stéphane



Re: PQconnectdb crashes when it gets wrong parameter(s)

From
Tom Lane
Date:
Stéphane Pinel <spinel@exenevex.com> writes:
> I'm experiencing crashes using libpq call to PQconnectdb when one of 
> the parameters is wrong (eg. login or password).

Please give a reproducible example.  It doesn't crash for other people...
        regards, tom lane