question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add psql command to connection strings section in database settings

See original GitHub issue

We show Postgres URI as “PSQL connection string”. It is possible to connect from psql using URI, but:

  1. This psql connection option is not documented so many users may not know about it.
  2. It makes a password visible when you paste it.
  3. It does not work for some passwords (I have just accidentally discovered that).

I would like to have a copiable psql command like the following:

psql -h db.[PROJECT_REF].supabase.co -p 5432 -d postgres -U postgres

So we may consider adding separate sections with PSQL command and URI like the following:

psql:
    psql -h db.{PROJECT_REF}.supabase.co -p 5432 -d postgres -U postgres
URI:
    postgresql://postgres:[YOUR-PASSWORD]@db.[PROJECT_REF].supabase.co:5432/postgres
Golang:
    ...
JDBC:
    ...
...

Database settings page: https://app.supabase.io/project/[PROJECT_REF]/settings/database

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
imskrcommented, Jan 22, 2022
1reaction
Isaiah-Hamiltoncommented, Jan 22, 2022

@imskr you have to type the link manually to get to the settings page that you want for local development. Link for general settings.

Read more comments on GitHub >

github_iconTop Results From Across the Web

34.1. Database Connection Control Functions - PostgreSQL
This function opens a new database connection using the parameters taken from the string conninfo . The passed string can be empty to...
Read more >
Connecting to PostgreSQL databases | Prisma's Data Guide
Before you can manage your data with PostgreSQL, you need to be able to connect to the database server. In this guide, we'll...
Read more >
How do you add connection options to PSQL? - Stack Overflow
postgres =# \conninfo You are connected to database "postgres" as user "postgres" on host "localhost" at port "5432".
Read more >
Postgres Connection Strings and psql - The Art of PostgreSQL
When it comes to using psql though, another form of connection string is introduced, with command line options -h -p -U and environment ......
Read more >
Connection String Parameters | Npgsql Documentation
To connect to a database, the application provides a connection string which specifies parameters such as the host, the username, the password, etc....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found