Connect to AlloyDB Omni

Select a documentation version:

This page describes how to connect to AlloyDB Omni after you deploy it using the RPM orchestrator.

Any client application that works with PostgreSQL can also work with AlloyDB Omni, with no modification needed.

To connect to your database cluster, use any PostgreSQL-compatible client, such as psql, that's installed on a client machine.

Before you begin

Connect to a database node using psql

To connect to your database node, run the psql command from a client machine that has network access to the database node.

  1. Run the following command:

    psql -h NODE_IP_ADDRESS -p 5432 -U postgres

    Replace NODE_IP_ADDRESS with the IP address of the database node.

  2. When you're prompted, enter the password for the postgres user.

Connect through a connection pooler

If you configured PgBouncer, you can connect to the cluster through the connection pooler. For more information, see Verify the connection pooler.

Connect using your own applications

Any client application that works with PostgreSQL can also work with AlloyDB Omni, with no modification needed.

Use any PostgreSQL-compatible client or code library to connect to AlloyDB Omni.

After you connect to the database server, you can define, query, and modify your databases by sending DML and SQL queries through standard PostgreSQL communication protocols.

Because AlloyDB Omni runs in your own environment, you can control how you connect to AlloyDB Omni. You can allow or restrict network access to AlloyDB Omni according to the needs of your application, just as you would with an ordinary PostgreSQL server.