Re: make \d pg_toast.foo show its indices

From: Rafia Sabih <rafia(dot)pghackers(at)gmail(dot)com>
To: Justin Pryzby <pryzby(at)telsasoft(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: make \d pg_toast.foo show its indices
Date: 2019-05-03 12:55:47
Message-ID: CA+FpmFfihB-okuPa0sxyhALpXcxMuHJYDS95sqvra6+D5Zkk6g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, 22 Apr 2019 at 17:49, Justin Pryzby <pryzby(at)telsasoft(dot)com> wrote:
>
> 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)
>
+1.

--
Regards,
Rafia Sabih

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Janes 2019-05-03 13:01:00 Re: pg_upgrade --clone error checking
Previous Message Jeevan Chalke 2019-05-03 11:56:45 Re: Statistical aggregate functions are not working with partitionwise aggregate