Skip to main content
added 1 character in body
Source Link

<Database>

This lists all databases:

SELECT datname FROM pg_database; 

These list all databases in detail:

\list 
\l 

These list all databases in more detail:

\list+ 
\l+ 

<Table>

These list all tables of all schemas of the current database:

\dt *.* 
\dtS *.* 

These list all tables of all schemas of the current database in detail:

\dt+ *.* 
\dtS\dtS+ *.* 

These list all tables of pg_catalog and public schemas of the current database:

\dtS 
\dtS * 
\dt * 

These list all tables of pg_catalog and public schemas of the current database in detail:

\dtS+ 
\dtS+ * 
\dt+ * 

This lists all tables of public schema of the current database:

\dt 

This lists all tables of public schema of the current database in detail:

\dt+ 

These list all tables of my_schema schema of the current database:

\dtS my_schema.* 
\dt my_schema.* 

These list all tables of my_schema schema of the current database in detail:

\dtS+ my_schema.* 
\dt+ my_schema.* 

<Database>

This lists all databases:

SELECT datname FROM pg_database; 

These list all databases in detail:

\list 
\l 

These list all databases in more detail:

\list+ 
\l+ 

<Table>

These list all tables of all schemas of the current database:

\dt *.* 
\dtS *.* 

These list all tables of all schemas of the current database in detail:

\dt+ *.* 
\dtS *.* 

These list all tables of pg_catalog and public schemas of the current database:

\dtS 
\dtS * 
\dt * 

These list all tables of pg_catalog and public schemas of the current database in detail:

\dtS+ 
\dtS+ * 
\dt+ * 

This lists all tables of public schema of the current database:

\dt 

This lists all tables of public schema of the current database in detail:

\dt+ 

These list all tables of my_schema schema of the current database:

\dtS my_schema.* 
\dt my_schema.* 

These list all tables of my_schema schema of the current database in detail:

\dtS+ my_schema.* 
\dt+ my_schema.* 

<Database>

This lists all databases:

SELECT datname FROM pg_database; 

These list all databases in detail:

\list 
\l 

These list all databases in more detail:

\list+ 
\l+ 

<Table>

These list all tables of all schemas of the current database:

\dt *.* 
\dtS *.* 

These list all tables of all schemas of the current database in detail:

\dt+ *.* 
\dtS+ *.* 

These list all tables of pg_catalog and public schemas of the current database:

\dtS 
\dtS * 
\dt * 

These list all tables of pg_catalog and public schemas of the current database in detail:

\dtS+ 
\dtS+ * 
\dt+ * 

This lists all tables of public schema of the current database:

\dt 

This lists all tables of public schema of the current database in detail:

\dt+ 

These list all tables of my_schema schema of the current database:

\dtS my_schema.* 
\dt my_schema.* 

These list all tables of my_schema schema of the current database in detail:

\dtS+ my_schema.* 
\dt+ my_schema.* 
added 312 characters in body
Source Link

<Database>

This lists all databases:

SELECT datname FROM pg_database; 

These list all databases in detail:

\list 
\l 

These list all databases in more detail:

\list+ 
\l+ 

<Table>

These list all tables of all schemas of the current database:

\dt *.* 
\dtS *.* 

These list all tables of all schemas of the current database in detail:

\dt+ *.* 
\dtS *.* 

These list all tables of pg_catalog and public schemas of the current database:

\dtS 
\dtS * 
\dt * 

These list all tables of pg_catalog and public schemas of the current database in detail:

\dtS+ 
\dtS+ * 
\dt+ * 

This lists all tables of public schema of the current database:

\dt 

This lists all tables of public schema of the current database in detail:

\dt+ 

These list all tables of my_schema schema of the current database:

\dtS my_schema.* 
\dt my_schema.* 

These list all tables of my_schema schema of the current database in detail:

\dtS+ my_schema.* 
\dt+ my_schema.* 

<Database>

This lists all databases:

SELECT datname FROM pg_database; 

These list all databases in detail:

\list 
\l 

These list all databases in more detail:

\list+ 
\l+ 

<Table>

These list all tables of all schemas of the current database:

\dt *.* 
\dtS *.* 

These list all tables of all schemas of the current database in detail:

\dt+ *.* 
\dtS *.* 

These list all tables of pg_catalog and public schemas of the current database:

\dtS 
\dtS * 
\dt * 

These list all tables of pg_catalog and public schemas of the current database in detail:

\dtS+ 
\dtS+ * 
\dt+ * 

This lists all tables of public schema of the current database:

\dt 

This lists all tables of public schema of the current database in detail:

\dt+ 

<Database>

This lists all databases:

SELECT datname FROM pg_database; 

These list all databases in detail:

\list 
\l 

These list all databases in more detail:

\list+ 
\l+ 

<Table>

These list all tables of all schemas of the current database:

\dt *.* 
\dtS *.* 

These list all tables of all schemas of the current database in detail:

\dt+ *.* 
\dtS *.* 

These list all tables of pg_catalog and public schemas of the current database:

\dtS 
\dtS * 
\dt * 

These list all tables of pg_catalog and public schemas of the current database in detail:

\dtS+ 
\dtS+ * 
\dt+ * 

This lists all tables of public schema of the current database:

\dt 

This lists all tables of public schema of the current database in detail:

\dt+ 

These list all tables of my_schema schema of the current database:

\dtS my_schema.* 
\dt my_schema.* 

These list all tables of my_schema schema of the current database in detail:

\dtS+ my_schema.* 
\dt+ my_schema.* 
added 116 characters in body
Source Link

<Database>

This lists all databases:

SELECT datname FROM pg_database; 

These list all databases in detail:

\list 
\l 

These list all databases in more detail:

\list+ 
\l+ 

<Table>

These list all tables of all schemas of the current database:

\dt *.* 
\dtS *.* 

These list all tables of all schemas of the current database in detail:

\dt+ *.* 
\dtS *.* 

This listsThese list all tables of pg_catalog and public schemas of the current database:

\dtS 
\dtS * 
\dt * 

This listsThese list all tables of pg_catalog and public schemas of the current database in detail:

\dtS+ 
\dtS+ * 
\dt+ * 

This lists all tables of public schema of the current database:

\dt 

This lists all tables of public schema of the current database in detail:

\dt+ 

<Database>

This lists all databases:

SELECT datname FROM pg_database; 

These list all databases in detail:

\list 
\l 

These list all databases in more detail:

\list+ 
\l+ 

<Table>

These list all tables of all schemas of the current database:

\dt *.* 
\dtS *.* 

These list all tables of all schemas of the current database in detail:

\dt+ *.* 
\dtS *.* 

This lists all tables of pg_catalog and public schemas of the current database:

\dtS 

This lists all tables of pg_catalog and public schemas of the current database in detail:

\dtS+ 

This lists all tables of public schema of the current database:

\dt 

This lists all tables of public schema of the current database in detail:

\dt+ 

<Database>

This lists all databases:

SELECT datname FROM pg_database; 

These list all databases in detail:

\list 
\l 

These list all databases in more detail:

\list+ 
\l+ 

<Table>

These list all tables of all schemas of the current database:

\dt *.* 
\dtS *.* 

These list all tables of all schemas of the current database in detail:

\dt+ *.* 
\dtS *.* 

These list all tables of pg_catalog and public schemas of the current database:

\dtS 
\dtS * 
\dt * 

These list all tables of pg_catalog and public schemas of the current database in detail:

\dtS+ 
\dtS+ * 
\dt+ * 

This lists all tables of public schema of the current database:

\dt 

This lists all tables of public schema of the current database in detail:

\dt+ 
added 273 characters in body
Source Link
Loading
added 38 characters in body
Source Link
Loading
added 39 characters in body
Source Link
Loading
added 43 characters in body
Source Link
Loading
added 35 characters in body
Source Link
Loading
added 12 characters in body
Source Link
Loading
Source Link
Loading