Re: Speeding up INSERTs and UPDATEs to partitioned tables

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Amit Langote <amitlangote09(at)gmail(dot)com>
Cc: Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>, David Rowley <david(dot)rowley(at)2ndquadrant(dot)com>, Jesper Pedersen <jesper(dot)pedersen(at)redhat(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, kato-sho(at)jp(dot)fujitsu(dot)com
Subject: Re: Speeding up INSERTs and UPDATEs to partitioned tables
Date: 2018-11-16 17:17:23
Message-ID: 20181116171723.kfscvwk3wc7kn3o4@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I repeated David's original tests not terribly rigorously[*] and got
these numbers:

* Unpatched: 72.396196
* 0001 : 77.279404
* 0001+0002: 20409.415094
* 0002: 816.606613
* control : 22969.140596 (insertion into unpartitioned table)

So while this patch by itself gives a pretty lame increase in tps, it
removes bottlenecks that will appear once we change the locking scheme.

[*] On my laptop, running each test only once for 60s.

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2018-11-16 17:20:51 Re: BUG #15449: file_fdw using program cause exit code error when using LIMIT
Previous Message Tom Lane 2018-11-16 16:56:12 Re: [HACKERS] PATCH: Keep one postmaster monitoring pipe per process