Add positive defense against trying to connect when the connection

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 2fc80b9ae6000ccf9223812b9149375abf0ee579
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-02-13T22:33:57Z
Releases: 8.2.0
Add positive defense against trying to connect when the connection
option state hasn't been fully set up.  This is possible via PQreset()
and might occur in other code paths too, so a state flag seems the
most robust solution.  Per report from Arturs Zoldners.

Files

PathChange+/−
src/interfaces/libpq/fe-connect.c modified +13 −2
src/interfaces/libpq/libpq-int.h modified +3 −3