pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Joe Van Dyk <joe@tanga.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Adding an additional join causes very different/slow query plan
Date: Tue, 17 Dec 2013 09:01:28 -0500
Message-ID: <20131217140128.GT2543@tamriel.snowman.net> (raw)
In-Reply-To: <CACfv+pKNEmbQyJPCqRGsVmc_HvRGAi3d_Ge893N8qbX+ymhodA@mail.gmail.com>
References: <CACfv+pJ-NCBHLiHmeiCg_J5eunSavhQCDERRm4ryS8iHrzEdbQ@mail.gmail.com>
	<CACfv+p+B56xF-8wbPM+aaY8reZbdkcjOanrz1qYZotnKmTo=ig@mail.gmail.com>
	<18828.1387239245@sss.pgh.pa.us>
	<CACfv+pKNEmbQyJPCqRGsVmc_HvRGAi3d_Ge893N8qbX+ymhodA@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

* Joe Van Dyk (joe@tanga.com) wrote:
> On Mon, Dec 16, 2013 at 4:14 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> > Yup, that's what I was just about to suggest.  You might want to use
> > 10 or 12 in case some of your queries are a bit more complex than
> > this one --- but don't go overboard, or you may find yourself with
> > unreasonable planning time.
> >
> 
> Is there a way to measure the planning time? It's not reported in 'explain
> analyze' or 'explain analyze verbose', right?

You can just run 'explain' and that'll more-or-less get you there (turn
on \timing in psql).  When reading this thread, I was thinking it might
be useful to add plan time somewhere in explain/explain analyze output
though..

	Thanks,

		Stephen

Attachments:

  signature.asc (application/pgp-signature, 835B) download

view thread (5+ messages)

Message-ID: <20131217140128.GT2543@tamriel.snowman.net>
Permalink:  ../20131217140128.GT2543@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20131217140128.GT2543@tamriel.snowman.net

 · 

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: sfrost@snowman.net, joe@tanga.com, tgl@sss.pgh.pa.us
  Subject: Re: Adding an additional join causes very different/slow query plan
  In-Reply-To: <20131217140128.GT2543@tamriel.snowman.net>

* 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