pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: David Rowley <david.rowley@2ndquadrant.com>
Cc: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: Imai, Yoshikazu <imai.yoshikazu@jp.fujitsu.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Subject: Re: speeding up planning with partitions
Date: Mon, 7 Jan 2019 08:13:32 -0600
Message-ID: <20190107141332.GT25379@telsasoft.com> (raw)
In-Reply-To: <CAKJS1f8fmcs2Smsm0K-2ZLZjv2GUs+qFZsaL2FmUi8Hed4dstw@mail.gmail.com>
References: <a22f24d1-5e20-f352-f402-3101cb1213bd@lab.ntt.co.jp>
	<73596f90-023c-c358-be9a-3c21bffcb15d@lab.ntt.co.jp>
	<0F97FA9ABBDBE54F91744A9B37151A5122E7B1@g01jpexmbkw24>
	<08a6775f-7c88-81a8-8c2c-984d171b6db9@lab.ntt.co.jp>
	<0F97FA9ABBDBE54F91744A9B37151A51232FF7@g01jpexmbkw24>
	<0F97FA9ABBDBE54F91744A9B37151A5124C0A0@g01jpexmbkw24>
	<580ddb99-cd31-096d-d485-fc309d274498@lab.ntt.co.jp>
	<55bd88c6-f311-2791-0a36-11c693c69753@lab.ntt.co.jp>
	<20190103153900.GA6236@telsasoft.com>
	<CAKJS1f8fmcs2Smsm0K-2ZLZjv2GUs+qFZsaL2FmUi8Hed4dstw@mail.gmail.com>

On Mon, Jan 07, 2019 at 09:40:50PM +1300, David Rowley wrote:
> On Fri, 4 Jan 2019 at 04:39, Justin Pryzby <pryzby@telsasoft.com> wrote:
> > Running 11dev with your v10 patch applied, this takes 2244ms with empty buffer
> > cache after postmaster restarted on a totally untuned instance (and a new
> > backend, with no cached opened files).
> >
> > I was curious why it took even 2sec, and why it did so many opens() (but not
> > 20k of them that PG11 does):
> 
> It would be pretty hard to know that without seeing the query plan.

The issue was this:
> > It turns out 1050 open()s are due to historic data which is no longer being
> > loaded and therefor never converted to relkind=p (but hasn't exceeded the
> > retention interval so not yet DROPped, either).

So there's no evidence of any issue with the patch.

Justin




view thread (265+ messages)  latest in thread

Message-ID: <20190107141332.GT25379@telsasoft.com>
Permalink:  ../20190107141332.GT25379@telsasoft.com/
Also on:    postgresql.org/message-id/20190107141332.GT25379@telsasoft.com

 · 

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-hackers@postgresql.org
  Cc: pryzby@telsasoft.com, david.rowley@2ndquadrant.com, Langote_Amit_f8@lab.ntt.co.jp, imai.yoshikazu@jp.fujitsu.com, alvherre@2ndquadrant.com
  Subject: Re: speeding up planning with partitions
  In-Reply-To: <20190107141332.GT25379@telsasoft.com>

* 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