Wiki / psql Commands / Describe database objects
\dt
In this group of commands, the letters E , i , m , s , t , and v stand for foreign table, index, materialized view, sequence, table, and view, respectively. You can specify any or all of these letters, in any order, to obtain a listing of objects of…
Reading PostgreSQL 18.6.
Description
In this group of commands, the letters E , i , m , s , t , and v stand for foreign table, index, materialized view, sequence, table, and view, respectively. You can specify any or all of these letters, in any order, to obtain a listing of objects of these types. For example, \dti lists tables and indexes. If x is appended to the command name, the results are displayed in expanded mode. If + is appended to the command name, each object is listed with its persistence status (permanent, temporary, or unlogged), physical size on disk, and associated description if any. If pattern is specified, only objects whose names match the pattern are listed. By default, only user-created objects are shown; supply a pattern or the S modifier to include system objects.
- Client
- psql 18.6
- Case-sensitive spelling
- \dt
Usage
\dE[Sx+] [ pattern ] \di[Sx+] [ pattern ] \dm[Sx+] [ pattern ] \ds[Sx+] [ pattern ] \dt[Sx+] [ pattern ] \dv[Sx+] [ pattern ]Spellings in this manual definition
Manual definition
\dE[Sx+] [pattern]\di[Sx+] [pattern]\dm[Sx+] [pattern]\ds[Sx+] [pattern]\dt[Sx+] [pattern]\dv[Sx+] [pattern]-
In this group of commands, the letters
E,i,m,s,t, andvstand for foreign table, index, materialized view, sequence, table, and view, respectively. You can specify any or all of these letters, in any order, to obtain a listing of objects of these types. For example,\dtilists tables and indexes. Ifxis appended to the command name, the results are displayed in expanded mode. If+is appended to the command name, each object is listed with its persistence status (permanent, temporary, or unlogged), physical size on disk, and associated description if any. Ifpatternis specified, only objects whose names match the pattern are listed. By default, only user-created objects are shown; supply a pattern or theSmodifier to include system objects.
Related entries
Documentation and source
Source build
- Version
- 18.6
- Build
- https://ftp.postgresql.org/pub/source/v18.6/postgresql-18.6.tar.bz2
- Source fingerprint
ee8d1a3612338fd9adf250730cb640fcc5233b5491337cc00a316a44e3a0b9f8
Compare versions
PostgreSQL 17 → 18: changed.
--- PostgreSQL 17
+++ PostgreSQL 18
@@ -1,32 +1,32 @@
{
- "definition": "In this group of commands, the letters E , i , m , s , t , and v stand for foreign table, index, materialized view, sequence, table, and view, respectively. You can specify any or all of these letters, in any order, to obtain a listing of objects of these types. For example, \\dti lists tables and indexes. If + is appended to the command name, each object is listed with its persistence status (permanent, temporary, or unlogged), physical size on disk, and associated description if any. If pattern is specified, only objects whose names match the pattern are listed. By default, only user-created objects are shown; supply a pattern or the S modifier to include system objects.",
+ "definition": "In this group of commands, the letters E , i , m , s , t , and v stand for foreign table, index, materialized view, sequence, table, and view, respectively. You can specify any or all of these letters, in any order, to obtain a listing of objects of these types. For example, \\dti lists tables and indexes. If x is appended to the command name, the results are displayed in expanded mode. If + is appended to the command name, each object is listed with its persistence status (permanent, temporary, or unlogged), physical size on disk, and associated description if any. If pattern is specified, only objects whose names match the pattern are listed. By default, only user-created objects are shown; supply a pattern or the S modifier to include system objects.",
"modifiers": [
{
"command": "\\dE",
- "modifiers": "S+"
+ "modifiers": "Sx+"
},
{
"command": "\\di",
- "modifiers": "S+"
+ "modifiers": "Sx+"
},
{
"command": "\\dm",
- "modifiers": "S+"
+ "modifiers": "Sx+"
},
{
"command": "\\ds",
- "modifiers": "S+"
+ "modifiers": "Sx+"
},
{
"command": "\\dt",
- "modifiers": "S+"
+ "modifiers": "Sx+"
},
{
"command": "\\dv",
- "modifiers": "S+"
+ "modifiers": "Sx+"
}
],
- "signature": "\\dE[S+] [ pattern ] \\di[S+] [ pattern ] \\dm[S+] [ pattern ] \\ds[S+] [ pattern ] \\dt[S+] [ pattern ] \\dv[S+] [ pattern ]",
+ "signature": "\\dE[Sx+] [ pattern ] \\di[Sx+] [ pattern ] \\dm[Sx+] [ pattern ] \\ds[Sx+] [ pattern ] \\dt[Sx+] [ pattern ] \\dv[Sx+] [ pattern ]",
"spellings": [
"\\dE",
"\\di",
Compares recorded interfaces and attributes. Source fingerprints and build metadata are excluded; an absent sample is not proof of the introduction or removal release.
Related entries
Export JSON · Back to psql Commands · Recorded in PostgreSQL 10 through 20; the first sample is not necessarily its introduction.