Re: Useless "Replica Identity: NOTHING" noise from psql \d

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Useless "Replica Identity: NOTHING" noise from psql \d
Дата
Msg-id 20140326155332.GI9567@eldon.alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Useless "Replica Identity: NOTHING" noise from psql \d  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Useless "Replica Identity: NOTHING" noise from psql \d  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Bruce Momjian wrote:
> On Wed, Mar 26, 2014 at 12:20:07PM -0300, Alvaro Herrera wrote:

> > Not opposed to this, but it seems a bit strange; REPLICA IDENTITY is a
> > property of the table, not of any individual index.  I think we should
> > lose the token in the "Indexes" section.
> 
> That is an interesting idea.  It would mean that \d table would not show
> anything about replica identity, because right now it does:
> 
>     test=> \d test
>          Table "public.test"
>      Column |  Type   | Modifiers
>     --------+---------+-----------
>      x      | integer | not null
>     Indexes:
>         "test_pkey" PRIMARY KEY, btree (x) REPLICA IDENTITY
> 
> That seems logical.

Hmm.  It seems to me that to make this more compact we could keep the
current token in the index line if it's INDEX, and not display the
Replica Identity: line at all; and if it's something other than index
and different from the default value, then print "Replica Identity" in
both \d and \d+.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: small regression adjustment
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Useless "Replica Identity: NOTHING" noise from psql \d