pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
postgresql9.5 partition table
3+ messages / 2 participants
[nested] [flat]

* postgresql9.5 partition table
@ 2017-12-29 13:21  mark <pgroad@163.com>
  0 siblings, 1 reply; 3+ messages in thread

From: mark @ 2017-12-29 13:21 UTC (permalink / raw)
  To: pgsql-general

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?





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: postgresql9.5 partition table
@ 2017-12-29 13:46  Alvaro Herrera <alvherre@alvh.no-ip.org>
  parent: mark <pgroad@163.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Alvaro Herrera @ 2017-12-29 13:46 UTC (permalink / raw)
  To: mark <pgroad@163.com>; +Cc: pgsql-general

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




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: postgresql9.5 partition table
@ 2017-12-29 14:05  mark <pgroad@163.com>
  parent: Alvaro Herrera <alvherre@alvh.no-ip.org>
  0 siblings, 0 replies; 3+ messages in thread

From: mark @ 2017-12-29 14:05 UTC (permalink / raw)
  To: Alvaro Herrera <alvherre@alvh.no-ip.org>; +Cc: pgsql-general

Hi Herrera
Thanks for your reply.
I will try it in postgresql10.
Regards,
Mark

发自网易邮箱手机版


在2017年12月29日 21:46,Alvaro Herrera 写道:
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


^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2017-12-29 14:05 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-12-29 13:21 postgresql9.5 partition table mark <pgroad@163.com>
2017-12-29 13:46 ` Alvaro Herrera <alvherre@alvh.no-ip.org>
2017-12-29 14:05   ` mark <pgroad@163.com>

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