Re: make \d pg_toast.foo show its indices

Поиск
Список
Период
Сортировка
От Rafia Sabih
Тема Re: make \d pg_toast.foo show its indices
Дата
Msg-id CA+FpmFffNcyO8CcG7O7P72K4-PuzataxT=hfWbaV=SrosMK=Cg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: make \d pg_toast.foo show its indices  (Justin Pryzby <pryzby@telsasoft.com>)
Ответы Re: make \d pg_toast.foo show its indices  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: make \d pg_toast.foo show its indices ; and, \d toast show itsmain table  (Justin Pryzby <pryzby@telsasoft.com>)
Список pgsql-hackers
On Fri, 3 May 2019 at 16:27, Justin Pryzby <pryzby@telsasoft.com> wrote:
>
> On Fri, May 03, 2019 at 02:55:47PM +0200, Rafia Sabih wrote:
> > On Mon, 22 Apr 2019 at 17:49, Justin Pryzby <pryzby@telsasoft.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.
>
> Thanks - what about also showing the associated non-toast table ?
>
IMHO, what makes more sense is to show the name of associated toast
table in the \dt+ of the normal table.


-- 
Regards,
Rafia Sabih



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: improving wraparound behavior
Следующее
От: Julien Rouhaud
Дата:
Сообщение: reindexdb & clusterdb broken against pre-7.3 servers