Re: psql \dt and table size

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: psql \dt and table size
Дата
Msg-id 1300912337-sup-1180@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: psql \dt and table size  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: psql \dt and table size  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: psql \dt and table size  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Excerpts from Robert Haas's message of mié mar 23 17:24:59 -0300 2011:
> On Mon, Mar 21, 2011 at 1:44 PM, Bernd Helmle <mailings@oopsware.de> wrote:
> > It stroke me today again, that \dt+ isn't displaying the acurate table size
> > for tables, since it uses pg_relation_size() till now. With having
> > pg_table_size() since PostgreSQL 9.0 available, i believe it would be more
> > useful to have the total acquired storage displayed, including implicit
> > objects (the mentioned case where it was not very useful atm was a table
> > with a big TOAST table).
> 
> I guess the threshold question for this patch is whether
> pg_table_size() is a "more accurate" table size or just a different
> one.

Not including the toast table and index in the size is just plain wrong.
Reporting the size without the toast objects is an implementation
artifact that should not be done unless explicitely requested.

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: Re: making write location work (was: Efficient transaction-controlled synchronous replication)
Следующее
От: Radosław Smogura
Дата:
Сообщение: Re: 2nd Level Buffer Cache