Re: Parallel Aggregate - Mailing list pgsql-hackers

From James Sewell
Subject Re: Parallel Aggregate
Date
Msg-id CANkGpBsrZXNpLG+wRRypqSLEeq4uTScdXwA573feFc5Yn3pSqQ@mail.gmail.com
Whole thread Raw
In response to Re: Parallel Aggregate  (David Rowley <david.rowley@2ndquadrant.com>)
List 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 by date:

Previous
From: Amit Langote
Date:
Subject: Re: pg_stat_get_progress_info(NULL) blows up
Next
From: David Rowley
Date:
Subject: Re: Parallel Aggregate