pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andrey Zhidenkov <andrey.zhidenkov@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Planner do seq scan on empty master partitioned table
Date: Thu, 11 Aug 2016 09:50:27 -0400
Message-ID: <29012.1470923427@sss.pgh.pa.us> (raw)
In-Reply-To: <CAJw4d1XeSzDVNta2-Omgu5Dp5O50e7D_mUvynsvmn=n+_KdhVw@mail.gmail.com>
References: <CAJw4d1XeSzDVNta2-Omgu5Dp5O50e7D_mUvynsvmn=n+_KdhVw@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Andrey Zhidenkov <andrey.zhidenkov@gmail.com> writes:
> I have a table (registry.entry) which has ~ 100 inherited tables. This
> is a master table and it's empty:

As long as it's empty, a seqscan should be essentially free.  Don't
worry about it.  And definitely don't create indexes, that will just
add cost.

			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 (3+ messages)  latest in thread

Message-ID: <29012.1470923427@sss.pgh.pa.us>
Permalink:  ../29012.1470923427@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/29012.1470923427@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, andrey.zhidenkov@gmail.com
  Subject: Re: Planner do seq scan on empty master partitioned table
  In-Reply-To: <29012.1470923427@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