pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: PostgreSQL <pgsql-general@postgresql.org>
Subject: partitioning
Date: Fri, 10 Aug 2012 17:53:36 -0700
Message-ID: <5025AD10.5030004@hogranch.com> (raw)

we have a realtime manufacturing system that uses messaging to a data 
service that uses a very large database we're trying to migrate to 
postgres.  key tables in this database have a 6 month retention, and are 
quite large, so they are partitioned by week, and we drop the oldest 
weeks periodically.   Sometimes, the DROP TABLE's hang, then fail with a 
deadlock.

We are getting DROP TABLE deadlocks under the full production workload 
which involves 100 or so active database worker processes pretty much 
continuously doing transactions in respond to message from the floor.    
There are a lot of lookups in the partitioned tables parents that don't 
involve the oldest partitions, We've been unable to simulate this in my 
lab to date.    I've been unable to get ahold of a log of this event, as 
currently production has gone to manually stopping the workers and 
running the partition purge twice a month by hand, I'm asking them to 
reproduce so I can see whats going on.


this is kind of frustrating, because I'm so far removed from the 
problem, and am having problems getting adequate information.



-- 
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast





view thread (32+ messages)  latest in thread

Message-ID: <5025AD10.5030004@hogranch.com>
Permalink:  ../5025AD10.5030004@hogranch.com/
Also on:    postgresql.org/message-id/5025AD10.5030004@hogranch.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 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: pierce@hogranch.com
  Subject: Re: partitioning
  In-Reply-To: <5025AD10.5030004@hogranch.com>
  References: <5025AD10.5030004@hogranch.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