X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 4F6CAD1D168 for ; Sat, 13 Mar 2004 15:39:39 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 85017-09 for ; Sat, 13 Mar 2004 11:39:41 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 53FAFD1CCAD for ; Sat, 13 Mar 2004 11:39:37 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i2DFddgZ018482; Sat, 13 Mar 2004 10:39:39 -0500 (EST) To: Joe Conway Cc: pgsql-performance Subject: Re: rapid degradation after postmaster restart In-reply-to: <4052661D.5060505@joeconway.com> References: <4052661D.5060505@joeconway.com> Comments: In-reply-to Joe Conway message dated "Fri, 12 Mar 2004 17:38:37 -0800" Date: Sat, 13 Mar 2004 10:39:39 -0500 Message-ID: <18481.1079192379@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/170 X-Sequence-Number: 6026 Joe Conway writes: > ... Immediately > after a postmaster restart, the first insert or two take about 1.5 > minutes (undoubtedly this could be improved, but it isn't the main > issue). However by the second or third insert, the time increases to 7 - > 9 minutes. Restarting the postmaster causes the cycle to repeat, i.e. > the first one or two inserts are back to the 1.5 minute range. Just to be clear on this: you have to restart the postmaster to bring the time back down? Simply starting a fresh backend session doesn't do it? Are you using particularly large values for shared_buffers or any of the other resource parameters? regards, tom lane