Answers for "connection postgresql"

SQL
1

psql connections

SELECT * FROM pg_stat_activity;
Posted by: Guest on August-17-2020
1

psql connect

psql -d gpdatabase -h master_host -p 5432 -U gpadmin
Posted by: Guest on July-13-2021
0

connect postgresql using a connection string

# Parse database configuration from $DATABASE_URL
import dj_database_url
# DATABASES['default'] =  dj_database_url.config()
#updated
DATABASES = {'default': dj_database_url.config(default='postgres://user:pass@localhost/dbname')}
Posted by: Guest on October-21-2021

Code answers related to "connection postgresql"

Code answers related to "SQL"

Browse Popular Code Answers by Language