From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sriram Dandapani <sdandapani@counterpane.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: archive logs recovery
Date: Thu, 31 Aug 2006 16:36:39 -0400
Message-ID: <23609.1157056599@sss.pgh.pa.us> (raw)
In-Reply-To: <6992E470F12A444BB787B5C937B9D4DF05ABC4C2@ca-mail1.cis.local>
References: <6992E470F12A444BB787B5C937B9D4DF05ABC4C2@ca-mail1.cis.local>
"Sriram Dandapani" <sdandapani@counterpane.com> writes:
> I have a very high traffic db with lots of table partitions. The only
> reliable way to drop the partitioned tables is to prevent any
> insert/select on the parent table , otherwise, the drop table locks out
> the inserts, and strangely enough, the drop table command goes into a
> wait state. During shutdown and restart, I switch the pg_hba.conf to
> disallow client access for a brief period when the tables are dropped.
You do know you can change pg_hba.conf without a restart?
As for the drop going into a wait state, you might want to look around
for client code that's sitting idle with an open transaction. The drop
should not block for longer than whatever is your longest transaction
touching that table.
regards, tom lane
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: tgl@sss.pgh.pa.us, sdandapani@counterpane.com
Subject: Re: archive logs recovery
In-Reply-To: <23609.1157056599@sss.pgh.pa.us>
References: <6992E470F12A444BB787B5C937B9D4DF05ABC4C2@ca-mail1.cis.local> <23609.1157056599@sss.pgh.pa.us>
* 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