postgresql_16:7.2.16.4 Diagnostics
PostgreSQL 16 > Reference > PostgreSQL Client Applications > pg_restore > Diagnostics
When a direct database connection is specified using the -d option, pg_restore internally executes SQL statements. If you have problems running pg_restore, make sure you are able to select information from the database using, for example, (see postgresql_16:7.2.18). Also, any default connection settings and environment variables used by the libpq front-end library will apply.