Re: Parallel Aggregate

Поиск
Список
Период
Сортировка
От James Sewell
Тема Re: Parallel Aggregate
Дата
Msg-id CANkGpBsrZXNpLG+wRRypqSLEeq4uTScdXwA573feFc5Yn3pSqQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Parallel Aggregate  (David Rowley <david.rowley@2ndquadrant.com>)
Список pgsql-hackers

On Mon, Mar 14, 2016 at 3:05 PM, David Rowley <david.rowley@2ndquadrant.com> wrote:

Things to try:
1. alter table a add column ts_date date; update a set ts_date =
date_trunc('DAY',ts); vacuum full analyze ts;
2. or, create index on a (date_trunc('DAY',ts)); analyze a;
3. or for testing, set the work_mem higher.


Ah, that makes sense.

Tried with a BTREE index, and it works as perfectly but the index is 428MB - which is a bit rough.

Removed that and put on a BRIN index, same result for 48kB - perfect!

Thanks for the help,

James




The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.

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

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: pg_stat_get_progress_info(NULL) blows up
Следующее
От: David Rowley
Дата:
Сообщение: Re: Parallel Aggregate