Re: [HACKERS] Vacuum: allow usage of more than 1GB of work mem

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [HACKERS] Vacuum: allow usage of more than 1GB of work mem
Дата
Msg-id 20180125144138.otxjbrotnof3n6q5@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: [HACKERS] Vacuum: allow usage of more than 1GB of work mem  (Claudio Freire <klaussfreire@gmail.com>)
Список pgsql-hackers
Claudio Freire wrote:
> On Thu, Jan 25, 2018 at 4:11 AM, Thomas Munro
> <thomas.munro@enterprisedb.com> wrote:

> > *** 128,134 ****
> >   SELECT pg_relation_size('vactst', 'main');
> >    pg_relation_size
> >   ------------------
> > !                 0
> >   (1 row)
> >
> >   SELECT count(*) FROM vactst;
> > --- 128,134 ----
> >   SELECT pg_relation_size('vactst', 'main');
> >    pg_relation_size
> >   ------------------
> > !              8192
> >   (1 row)

> However, shouldn't an empty relation have an initial page anyway? In
> that case shouldn't the correct value be 8192?

No, it's legal for an empty table to have size 0 on disk.

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


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCH][PROPOSAL] Refuse setting toast.* reloptions when TOAST table does not exist
Следующее
От: Tom Lane
Дата:
Сообщение: Re: reducing isolation tests runtime