pgsql: Report the true database name on connection errors

2021-01-26 Thread Alvaro Herrera
Report the true database name on connection errors When reporting connection errors, we might show a database name in the message that's not the one we actually tried to connect to, if the database was taken from libpq defaults instead of from user parameters. Fix such error messages to use PQdb()

pgsql: Report the true database name on connection errors

2021-01-26 Thread Alvaro Herrera
Report the true database name on connection errors When reporting connection errors, we might show a database name in the message that's not the one we actually tried to connect to, if the database was taken from libpq defaults instead of from user parameters. Fix such error messages to use PQdb()

pgsql: Report the true database name on connection errors

2021-01-26 Thread Alvaro Herrera
Report the true database name on connection errors When reporting connection errors, we might show a database name in the message that's not the one we actually tried to connect to, if the database was taken from libpq defaults instead of from user parameters. Fix such error messages to use PQdb()

pgsql: Report the true database name on connection errors

2021-01-26 Thread Alvaro Herrera
Report the true database name on connection errors When reporting connection errors, we might show a database name in the message that's not the one we actually tried to connect to, if the database was taken from libpq defaults instead of from user parameters. Fix such error messages to use PQdb()

pgsql: Report the true database name on connection errors

2021-01-26 Thread Alvaro Herrera
Report the true database name on connection errors When reporting connection errors, we might show a database name in the message that's not the one we actually tried to connect to, if the database was taken from libpq defaults instead of from user parameters. Fix such error messages to use PQdb()

pgsql: Report the true database name on connection errors

2021-01-26 Thread Alvaro Herrera
Report the true database name on connection errors When reporting connection errors, we might show a database name in the message that's not the one we actually tried to connect to, if the database was taken from libpq defaults instead of from user parameters. Fix such error messages to use PQdb()