Create a hosted database
Create a database in the hosted console and verify it with PostgreSQL 19 psql.
MarkdownYou’ll need an approved early-access email address and the PostgreSQL 19 psql client. Join the waitlist if you’re waiting for access, or run PostDurable locally to try it on your machine.
Open your account
- If you have approval and this is your first visit, use the signup page with your approved email. If you have an account, sign in.
- Open the email link in the same browser where you requested it. The link expires after 10 minutes.
- Choose your account.
Create a database
- Enter a project name and select Create project, or use an existing project.
- In the project, expand Create database if the form is closed. Enter a name and select Create database.
- Wait for Ready. Use Refresh status to check a pending operation. If provisioning fails, review its status and use Reconcile operation if available.
Connect with psql
- Open the database and select Connect.
- Select Issue password and save the SQL password when it appears. Issuing a password replaces the previous password for the SQL owner. Viewers can see the endpoint and should ask an account administrator for a separate SQL login.
- Copy and run the console’s psql command. Enter the password at the prompt. The command uses direct TLS and verifies the hostname with the system trust store.
- Run a query to check the database and role.
SELECT current_database(), current_user;
The result should show your database ID and SQL role. Enter \q to leave psql.
Connect an application
Use a driver that supports direct TLS. Save the connection string in your server’s secret store and use it to set DATABASE_URL. If you rotate the SQL password, update the stored connection string and reconnect the application.