Test TCP connectivity to a PostgreSQL server. No credentials are sent.
PostgreSQL hostname or IP address.
PostgreSQL TCP port (typically 5432).
Maximum time to wait for the connection, in milliseconds (default: 5000).
Connectivity result with reachability status, optional error, and latency.
Run setup steps in order, each as its own plain query outside any transaction block. A new connection is opened whenever a step targets a different database than the one before it; every connection is closed before this method returns, whether it succeeds or throws.
Server and credentials; each step supplies its own database.
The ordered setup steps.
Receives a line per step (run or skipped) and each server NOTICE.
Sign in to PostgreSQL and open target.Database, then disconnect.
Server, database, and credentials to try.
Whether the sign-in worked and, if not, whether PostgreSQL refused it.
Lightweight adapter for PostgreSQL reachability, sign-in checks, and running the installer's setup steps.
Example