pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Brad King <brad.king@channeladvisor.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Partitioning and deadlocks
Date: Tue, 23 Oct 2007 13:51:01 -0500
Message-ID: <dcc563d10710231151r16e66a52wb0f917c37aaf5776@mail.gmail.com> (raw)
In-Reply-To: <D45F1ECA30B59A4F96208F86532F901F0DB54744@rdu-caex-01.channeladvisor.com>
References: <D45F1ECA30B59A4F96208F86532F901F1CB448F9@rdu-caex-01.channeladvisor.com>
	<D45F1ECA30B59A4F96208F86532F901F0DB54744@rdu-caex-01.channeladvisor.com>

On 10/23/07, Brad King <brad.king@channeladvisor.com> wrote:
> Let me re-phrase this to see if I can get any response. Has anyone used
> partitioning with inheritance successfully ? Can you point to any
> specific concurrency strategies for garbage collecting old partitions on
> a live system ? Thank you.

I've never truncated on a live one.  It is pretty easy to just update
the update/insert rules/triggers to ignore the old table, then drop
it.  I'm guessing you could do that, then recreate the table and get
good performance.



view thread (4+ messages)  latest in thread

Message-ID: <dcc563d10710231151r16e66a52wb0f917c37aaf5776@mail.gmail.com>
Permalink:  ../dcc563d10710231151r16e66a52wb0f917c37aaf5776@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10710231151r16e66a52wb0f917c37aaf5776@mail.gmail.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-admin@postgresql.org
  Cc: scott.marlowe@gmail.com, brad.king@channeladvisor.com
  Subject: Re: Partitioning and deadlocks
  In-Reply-To: <dcc563d10710231151r16e66a52wb0f917c37aaf5776@mail.gmail.com>
  References: <D45F1ECA30B59A4F96208F86532F901F1CB448F9@rdu-caex-01.channeladvisor.com> <D45F1ECA30B59A4F96208F86532F901F0DB54744@rdu-caex-01.channeladvisor.com> <dcc563d10710231151r16e66a52wb0f917c37aaf5776@mail.gmail.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