Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 1973A9FBE5F for ; Tue, 23 Oct 2007 15:51:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 15853-04-6 for ; Tue, 23 Oct 2007 15:51:04 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by postgresql.org (Postfix) with ESMTP id C75439FBE58 for ; Tue, 23 Oct 2007 15:51:03 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id j3so177529ugf for ; Tue, 23 Oct 2007 11:51:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=BhQD9ONKSa/q0CmS0Z7jMw9aHqLMzftaD2nojTsobks=; b=CXKnShQbuI9YQPmgrHPHLoxbvWuS4HJ+DZWbKM+LHTnJAYol1JxKvgtWIOMfBHuy6F0BM9YlOh/H31URmoV0jMz2DgZ6lk97M6hCBOOMk5wBpyfNfOdJQI5S8A+aTpKRjZrQIKJ/uZfPlYGMlng4+q4Q8VZtEQ+r88XzvSgVtNE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JJpo0NyfiVe/LZUpqhMR5ulOxvkALrOPJ37O3CE9xAmg0+ci1rudYOF+A3iFjmhthBoSIcYBw52xGSsM4e0do1ZTiqkFkc5YUx+5nhE0DEwAEzA/fn5g4IbqO4TCJ/lPoufwWlkTg7+AVmRfF4Qm6Fe/FNS8ZzjuF8icifso0cc= Received: by 10.67.21.11 with SMTP id y11mr1166142ugi.1193165461497; Tue, 23 Oct 2007 11:51:01 -0700 (PDT) Received: by 10.67.40.10 with HTTP; Tue, 23 Oct 2007 11:51:01 -0700 (PDT) Message-ID: Date: Tue, 23 Oct 2007 13:51:01 -0500 From: "Scott Marlowe" To: "Brad King" Subject: Re: Partitioning and deadlocks Cc: pgsql-admin@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/224 X-Sequence-Number: 27138 On 10/23/07, Brad King 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.