pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Piotr Gasidło <quaker@barbara.eu.org>
Cc: Vitalii Tymchyshyn <tivv00@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Big difference in time returned by EXPLAIN ANALYZE SELECT ... AND SELECT ...
Date: Tue, 27 Jul 2010 00:19:03 -0400
Message-ID: <29602.1280204343@sss.pgh.pa.us> (raw)
In-Reply-To: <AANLkTi=o5hyRFHYb23nnP8EOAUGn-94N_eOp-TCoT8qr@mail.gmail.com>
References: <AANLkTinHPkEDijSHbxY3KxygO2SWy6XMPLvn=CvnWdG8@mail.gmail.com>
	<4C4D5220.9010101@postnewspapers.com.au>
	<4C4D547E.50905@gmail.com>
	<AANLkTi=o5hyRFHYb23nnP8EOAUGn-94N_eOp-TCoT8qr@mail.gmail.com>

=?UTF-8?Q?Piotr_Gasid=C5=82o?= <quaker@barbara.eu.org> writes:
> Ok. Is there any way to tune postgresql, to shorten planning time for
> such queries?

You've got a ridiculously large number of partitions.  Use fewer.

			regards, tom lane



view thread (9+ messages)  latest in thread

Message-ID: <29602.1280204343@sss.pgh.pa.us>
Permalink:  ../29602.1280204343@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29602.1280204343@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, quaker@barbara.eu.org, tivv00@gmail.com
  Subject: Re: Big difference in time returned by EXPLAIN ANALYZE SELECT ... AND SELECT ...
  In-Reply-To: <29602.1280204343@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox