Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 59B359FA354 for ; Fri, 15 Dec 2006 14:06:52 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 76316-03 for ; Fri, 15 Dec 2006 14:06:47 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id AA8EE9FA2CA for ; Fri, 15 Dec 2006 14:06:47 -0400 (AST) 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 kBFI6kBa012509; Fri, 15 Dec 2006 13:06:46 -0500 (EST) To: "Steven Flatt" cc: pgsql-performance@postgresql.org Subject: Re: Insertion to temp table deteriorating over time In-reply-to: <357fa7590612150955g1b9c733duaf000c23d28aa8af@mail.gmail.com> References: <357fa7590612130844q58ef3ca5q31e164f9b006e0fc@mail.gmail.com> <9315.1166030958@sss.pgh.pa.us> <357fa7590612131517q375fc0by50cb4257bcce7a94@mail.gmail.com> <13032.1166052447@sss.pgh.pa.us> <357fa7590612141240t55e70695q770a05a68a67536c@mail.gmail.com> <25209.1166131396@sss.pgh.pa.us> <357fa7590612150821i3eca3f66ge2ced1ee20fa2dac@mail.gmail.com> <11651.1166202586@sss.pgh.pa.us> <357fa7590612150955g1b9c733duaf000c23d28aa8af@mail.gmail.com> Comments: In-reply-to "Steven Flatt" message dated "Fri, 15 Dec 2006 12:55:46 -0500" Date: Fri, 15 Dec 2006 13:06:46 -0500 Message-ID: <12508.1166206006@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/424 X-Sequence-Number: 22480 "Steven Flatt" writes: > Our application is such that there is a great deal of activity at the > beginning of the hour and minimal activity near the end of the hour. OK ... > The truncate and re-fill process is done once per hour, at the end of the > high-load cycle, so I doubt that's even a big contributor to the number of > removable rows in pg_class. Oh, then where *are* the removable rows coming from? At this point I think that the truncate/refill thing is not the culprit, or at any rate is only one part of a problematic usage pattern that we don't see all of yet. regards, tom lane