Re: ToDo: show size of partitioned table

Поиск
Список
Период
Сортировка
От Ashutosh Bapat
Тема Re: ToDo: show size of partitioned table
Дата
Msg-id CAFjFpRcw8F=c3424Tp4pe072uPh8607v5eG+dbvrYa4SsV5-pA@mail.gmail.com
обсуждение исходный текст
Ответ на ToDo: show size of partitioned table  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: ToDo: show size of partitioned table  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: ToDo: show size of partitioned table  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Список pgsql-hackers
On Fri, Jun 1, 2018 at 12:56 AM, Pavel Stehule <pavel.stehule@gmail.com> wrote:
> Hi
>
> postgres=# SELECT count(*) from data;
> ┌─────────┐
> │  count  │
> ╞═════════╡
> │ 1000000 │
> └─────────┘
> (1 row)
>
> \dt+ can display actual size of partitioned table data - now zero is
> displayed
>
> postgres=# \dt+ data
>                     List of relations
> ┌────────┬──────┬───────┬───────┬─────────┬─────────────┐
> │ Schema │ Name │ Type  │ Owner │  Size   │ Description │
> ╞════════╪══════╪═══════╪═══════╪═════════╪═════════════╡
> │ public │ data │ table │ pavel │ 0 bytes │             │
> └────────┴──────┴───────┴───────┴─────────┴─────────────┘
> (1 row)

I think we should at least display "Type" as "partitioned table" for a
partitioned table, so that it's easy to understand why the size is 0;
partitioned tables do not hold any data by themselves.

-- 
Best Wishes,
Ashutosh Bapat
EnterpriseDB Corporation
The Postgres Database Company

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

Предыдущее
От: Steven Winfield
Дата:
Сообщение: RE: FW: Possible optimisation: push down SORT and LIMIT nodes
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: ToDo: show size of partitioned table