Re: [HACKERS] Highly Variable Planning Times - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [HACKERS] Highly Variable Planning Times
Date
Msg-id 20170419204945.ixqv5cjwh3hkpgu6@alvherre.pgsql
Whole thread Raw
In response to [HACKERS] Highly Variable Planning Times  (Michael Malis <michaelmalis2@gmail.com>)
List pgsql-hackers
Michael Malis wrote:
> Hi,
> 
> I've been encountering highly variable planning time on PG 9.5.4.
> Running `EXPLAIN SELECT * FROM events_1171738` will take anywhere from
> 200ms to 4s. This likely has to do with the table having 1300 partial
> indexes on it (for reasons elaborated on in
> https://blog.heapanalytics.com/running-10-million-postgresql-indexes-in-production/).
> I'm trying to figure out if there is something I can do to eliminate
> the slow planning from happening.

I wonder if some BRIN index could help this use case, reducing the
number of indexes.

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



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: [HACKERS] Highly Variable Planning Times
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] Highly Variable Planning Times