Add positive defense against trying to connect when the connection
Tom Lane <tgl@sss.pgh.pa.us>
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
| Path | Change | +/− |
|---|---|---|
| src/interfaces/libpq/fe-connect.c | modified | +13 −2 |
| src/interfaces/libpq/libpq-int.h | modified | +3 −3 |