pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Greg Spiegelberg <gspiegelberg@gmail.com>
Cc: Mike Sofen <msofen@runbox.com>
Cc: pgsql-performa. <pgsql-performance@postgresql.org>
Subject: Re: Millions of tables
Date: Wed, 28 Sep 2016 14:00:35 -0400
Message-ID: <20160928180035.GX5148@tamriel.snowman.net> (raw)
In-Reply-To: <CAEtnbpXMbsaWGF1jByqC0nK9DGS4_7mvHjRYQnL_cWVzT7ov2Q@mail.gmail.com>
References: <CAEtnbpVXi0ESh16KAeYkFOiFPhTrJ2JXps9PypuAGCYidWtcnA@mail.gmail.com>
	<CAEtnbpUu1EiOAA4Awt4Ti8XxJNZG+inOfwv3wkqw2Z-j1o147A@mail.gmail.com>
	<002d01d218d1$41bb2160$c5316420$@runbox.com>
	<003401d218d5$cb900640$62b012c0$@runbox.com>
	<CAEtnbpU23--36ea-HoECUBysvtYOMCobd9wEY6b2bL88ugOTXg@mail.gmail.com>
	<20160928172759.GW5148@tamriel.snowman.net>
	<CAEtnbpXMbsaWGF1jByqC0nK9DGS4_7mvHjRYQnL_cWVzT7ov2Q@mail.gmail.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

Greg,

* Greg Spiegelberg (gspiegelberg@gmail.com) wrote:
> On Wed, Sep 28, 2016 at 11:27 AM, Stephen Frost <sfrost@snowman.net> wrote:
> > * Greg Spiegelberg (gspiegelberg@gmail.com) wrote:
> > > Bigger buckets mean a wider possibility of response times.  Some buckets
> > > may contain 140k records and some 100X more.
> >
> > Have you analyzed the depth of the btree indexes to see how many more
> > pages need to be read to handle finding a row in 140k records vs. 14M
> > records vs. 140M records?
> >
> > I suspect you'd find that the change in actual depth (meaning how many
> > pages have to actually be read to find the row you're looking for) isn't
> > very much and that your concern over the "wider possibility of response
> > times" isn't well founded.

> Excellent feedback!   Um, how does one look at tree depth in PostgreSQL?
> Oracle I know but have not done the same in PG.  Pointers?

CREATE EXTENSION pageinspect;

SELECT * FROM bt_metap('indexname');

https://www.postgresql.org/docs/9.5/static/pageinspect.html

Thanks!

Stephen

Attachments:

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

view thread (42+ messages)  latest in thread

Message-ID: <20160928180035.GX5148@tamriel.snowman.net>
Permalink:  ../20160928180035.GX5148@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20160928180035.GX5148@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, gspiegelberg@gmail.com, msofen@runbox.com
  Subject: Re: Millions of tables
  In-Reply-To: <20160928180035.GX5148@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