Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id DAFE19FB394 for ; Fri, 29 Sep 2006 18:48:18 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 23649-10 for ; Fri, 29 Sep 2006 18:48:15 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 211C79FB222 for ; Fri, 29 Sep 2006 18:48:15 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k8TLmCYw003960; Fri, 29 Sep 2006 17:48:12 -0400 (EDT) To: "Sriram Dandapani" cc: "Matthew T. O'Connor" , pgsql-admin@postgresql.org Subject: Re: autovacuum ignore tables In-reply-to: <6992E470F12A444BB787B5C937B9D4DF060E5C95@ca-mail1.cis.local> References: <6992E470F12A444BB787B5C937B9D4DF060E5C95@ca-mail1.cis.local> Comments: In-reply-to "Sriram Dandapani" message dated "Fri, 29 Sep 2006 14:42:54 -0700" Date: Fri, 29 Sep 2006 17:48:12 -0400 Message-ID: <3959.1159566492@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.095 tagged_above=0 required=5 tests=AWL, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200609/385 X-Sequence-Number: 23299 "Sriram Dandapani" writes: > The jdbc inserts go into the main parent table and check constraints > redirect them to child tables. A check constraint can't redirect anything. Are you saying that you use a trigger to try to insert the row into *each* child table, relying on the constraints to make all except one insert fail? Ugh. You'd do a lot better to duplicate the partitioning-rule knowledge in the trigger, and do only one insert that should succeed --- no wasted cycles, and no need for a subtransaction. regards, tom lane