3D000 Undefined Database
Connecting to PostgreSQL may trigger an error as shown below:
FATAL: database "testdb" does not exist
The database you are trying to connect to does not exist. Note that if you do not specify a database name, it defaults to the database user name, which might or might not be the right thing.