How to List All Databases in PostgreSQL?

You might need to know the list of databases available on the PostgreSQL server. Or you want to see what databases are created by default on the server and their name. So, here is a handy tool that can get you that information.

postgresql show current database

By Worried WolverineWorried Wolverine on Apr 18, 2020
SELECT current_database();

Add Comment

2

postgresql list db

By GutoTroslaGutoTrosla on May 28, 2020
postgres=# \l

Source: chartio.com

Add Comment

22

show table postgres command

By ArqaArqa on Mar 30, 2020
PostgreSQL show tables command
	
\dt

Add Comment

16

postgres show databases

By Wide-eyed WalrusWide-eyed Walrus on Feb 02, 2021
# List databases:
\l

Add Comment

3

postgres how to list all databases

By Juice WRLDJuice WRLD on Jun 05, 2020
List all databases:
\l

Add Comment

4

postgres list databases

By Better BuzzardBetter Buzzard on Jan 08, 2021
postgres=# \l

Source: chartio.com

Add Comment

0

To list all databases in PostgreSQL use the \l command, for example, \l. To list a specific database use the \list command, for example \list test.

SQL answers related to "postgres show databases"

View All SQL queries

SQL queries related to "postgres show databases"

postgres show databases postgres list databases plsql check how much space all databases are consuming mysql loop through databases and execute query show size of all tables postgres show database not empty tables postgres Postgres show tables list all permissions on a table in postgres postgres regex remove special characters database url postgres insert postgres postgres killing connections on db alter column in table postgres psql: FATAL: Ident authentication failed for user "postgres" update column data type postgres postgres alter table owner find a column in all tables postgres update with inner join postgres DATEDIFF minute postgres sql multiple insert postgres postgres if else postgres row expiration postgres import dokku postgres 11 add primary key sqlalchemy postgres timestamp with timezone postgres base size Did not find any relation named postgres load csv files into postgres db sqlalchemy populate db from command line postgres dasebase_url-postgres for windows Database owner can't create new tables postgres create a view postgres postgres time difference in minutes postgres create view postgres duplicate database in same server while other session is using source database postgres delete database run postgres locally postgres kill all connections postgres active connections delete db postgres truncate table postgres rename column postgres useradd postgres How do I add a user to a postgres database? cli case when postgres postgres get number of days between two dates postgres limit how to hard drop database in postgres postgres extract time from timestamp alter table add column postgres Postgres INSERT INTO select from table postgres list users mysql show variables how to show all users in mysql psql show with user is logged in show all users in mysql sql show tables mysql show current connections show create table query of table in mysql oracle show running procedures mysql show attributes of a table how to show index type in postgresql oracle show execution plan oracle show running queries how to user id to show in from date to upto date in mssql server show primary key in sql sql show columns in table mysql show check constraints sql show founctions sql show custom constraints sql statement show all emails with dome show users

Browse Other Code Languages

CodeProZone