pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mike Broers <mbroers@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: query against single partition uses index, against master table does seq scan
Date: Wed, 21 Sep 2016 22:11:27 -0400
Message-ID: <24073.1474510287@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB9893h=eDDHZ9m-0ENPQzqVdqjWBHhmiVCpfSZK7oUZVYHfXw@mail.gmail.com>
References: <CAB9893h=eDDHZ9m-0ENPQzqVdqjWBHhmiVCpfSZK7oUZVYHfXw@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Mike Broers <mbroers@gmail.com> writes:
> Hello, I am curious about the performance of queries against a master table
> that seem to do seq scans on each child table.  When the same query is
> issued at a partition directly it uses the partition index and is very
> fast.

What PG version is that?  For me, everything since 9.0 seems to be willing
to consider the type of plan you're expecting.

			regards, tom lane


-- 
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



view thread (7+ messages)  latest in thread

Message-ID: <24073.1474510287@sss.pgh.pa.us>
Permalink:  ../24073.1474510287@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24073.1474510287@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, mbroers@gmail.com
  Subject: Re: query against single partition uses index, against master table does seq scan
  In-Reply-To: <24073.1474510287@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