Connect to Aiven for PostgreSQL® with LibreDB Studio
Use LibreDB Studio to connect to your Aiven for PostgreSQL® service from a browser. LibreDB Studio is an open source SQL client that you host yourself, so a team connects through one URL instead of installing a client on every machine.
Prerequisites
-
Access to the Aiven Console
-
At least one running Aiven for PostgreSQL service
-
LibreDB Studio running on your machine or your network, for example with Docker:
docker run -p 3000:3000 -v libredb:/app/data \-e STORAGE_PROVIDER=sqlite ghcr.io/libredb/libredb-studio:0.15.0STORAGE_PROVIDER=sqlitekeeps saved connections on the server instead of in the browser, and the volume keeps them when you replace the container. On the first run, LibreDB Studio prints the admin password to the container log, so read it withdocker logsbefore you sign in.
Get the service URI from the Aiven Console
- Log in to the Aiven Console and go to your organization > project > Aiven for PostgreSQL service.
- On the Overview page, go to the Connection information section.
- Copy the Service URI. It carries the host, port, user, password, database name,
and
sslmode=require.
Connect to the service URI from LibreDB Studio
- Open LibreDB Studio, sign in, and create a connection.
- Click Paste URL, paste the service URI, and click Parse. LibreDB Studio
fills in the host, port, user, password, and database name, and sets SSL to
REQUIREbecause the URI carriessslmode=require. - Click Test Connection to verify the settings, and click Establish Connection to save the connection.
The object browser lists your tables, and the query editor and EXPLAIN plans run
against the service.
Connection limits on smaller plans
LibreDB Studio keeps a connection pool open while a connection is active, so it uses several of the connections your plan allows. Plans with a low connection limit, such as the free plan with a limit of 20, leave less room for other clients. Check Connections on the Overview page if several tools connect at the same time.
Related pages
- Connect to Aiven for PostgreSQL for more tools you can use for connecting to your service
- LibreDB Studio
- LibreDB Studio on GitHub