pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: mark <pgroad@163.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: postgresql9.5 partition table
Date: Fri, 29 Dec 2017 10:46:04 -0300
Message-ID: <20171229134604.2sqdt56sfhtknkct@alvherre.pgsql> (raw)
In-Reply-To: <4e3519f7.b2f3.160a26ef84f.Coremail.pgroad@163.com>

mark wrote:
> I defined a table using 1000 partition tables.
> When I deleted or updated this table. It used a lot of memory and
> postmaster process is killed by OS. When I defined the same table
> using 100 partition tables. It can normally be updated and deleted.
> what is reason of this?

Postgres 9.5 is not prepared to deal with thousands of partitions.

You can try the improved partitioning with the new syntax introduced in
Postgres 10 -- you may have better luck there.  Please test it.
If it still doesn't work, let us know in detail what you tested and how
it failed.

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




view thread (3+ messages)  latest in thread

Message-ID: <20171229134604.2sqdt56sfhtknkct@alvherre.pgsql>
Permalink:  ../20171229134604.2sqdt56sfhtknkct@alvherre.pgsql/
Also on:    postgresql.org/message-id/20171229134604.2sqdt56sfhtknkct@alvherre.pgsql

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: alvherre@alvh.no-ip.org, pgroad@163.com
  Subject: Re: postgresql9.5 partition table
  In-Reply-To: <20171229134604.2sqdt56sfhtknkct@alvherre.pgsql>
  References: <4e3519f7.b2f3.160a26ef84f.Coremail.pgroad@163.com> <20171229134604.2sqdt56sfhtknkct@alvherre.pgsql>

* 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