make \d pg_toast.foo show its indices
Justin Pryzby <pryzby@telsasoft.com>
From: Justin Pryzby <pryzby@telsasoft.com>
To: pgsql-hackers@postgresql.org
Date: 2019-04-22T15:49:02Z
Lists: pgsql-hackers
Attachments
- slash-d-show-indices-on-toast.patch (text/x-diff) patch
It's deliberate that \dt doesn't show toast tables.
\d shows them, but doesn't show their indices.
It seems to me that their indices should be shown, without having to think and
know to query pg_index.
postgres=# \d pg_toast.pg_toast_2600
TOAST table "pg_toast.pg_toast_2600"
Column | Type
------------+---------
chunk_id | oid
chunk_seq | integer
chunk_data | bytea
Indexes:
"pg_toast_2600_index" PRIMARY KEY, btree (chunk_id, chunk_seq)
Justin
Commits
-
Improve psql's \d output for partitioned indexes.
- 24f62e93f314 13.0 landed
-
Improve psql's \d output for TOAST tables.
- eb5472da9f83 13.0 landed