X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 3D26D9FB28D for ; Thu, 7 Sep 2006 07:49:12 -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 45268-03 for ; Thu, 7 Sep 2006 07:49:02 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.238]) by postgresql.org (Postfix) with ESMTP id D28E09FB2A2 for ; Thu, 7 Sep 2006 07:49:02 -0300 (ADT) Received: by wx-out-0506.google.com with SMTP id t13so199852wxc for ; Thu, 07 Sep 2006 03:49:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=F8A+fnyr2aWhBB+ofq+0LLo2jCFYvTPodMswHkv9ChyHIkhdpFyQ9kuDMwGhx84QWOd5igib6U/GQ+P98wGsbBTe0Y23RUwsWh6C1q7mdrSGIilP5t/09D63BFvZVLSkr53J8OryPTu16ahIt94nuV7MLGaO8ltPApi2zC56Zg0= Received: by 10.90.72.10 with SMTP id u10mr87447aga; Thu, 07 Sep 2006 03:49:01 -0700 (PDT) Received: by 10.90.93.18 with HTTP; Thu, 7 Sep 2006 03:49:01 -0700 (PDT) Message-ID: <965aa3ed0609070349t10565a86i9100cc9ec1b8b043@mail.gmail.com> Date: Thu, 7 Sep 2006 16:19:01 +0530 From: "Nimesh Satam" To: "Chris Mair" Subject: Re: [PATCHES] Template0 age is increasing speedily. Cc: pgsql-performance@postgresql.org In-Reply-To: <1157625625.28654.4.camel@ultra.home.lan> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_144643_20270195.1157626141533" References: <965aa3ed0609070331y5749226eg91de0b376e343c75@mail.gmail.com> <1157625625.28654.4.camel@ultra.home.lan> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.448 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, HTML_40_50, HTML_MESSAGE, SPF_PASS X-Spam-Level: X-Archive-Number: 200609/34 X-Sequence-Number: 20720 ------=_Part_144643_20270195.1157626141533 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, Postgres Version used is 8.1.3 OS: Linux 'SELECT datname, age(datfrozenxid) FROM pg_database' postgres | 1575 xyz | 1073743934 template1 | 1632 template0 | 61540256 This is the command which I tried and got the above output, and the number is increasing pretty fast for template0. Please let me know if this a problem. Regards, Nimesh. On 9/7/06, Chris Mair wrote: > > On Thu, 2006-09-07 at 16:01 +0530, Nimesh Satam wrote: > > > I noticed that the age of template0 is increasing very rapidly..Can > > you please let me know how we can control this ....and what causes > > such problems. > > > > We also noticed that the database slow downs heavily at a particular > > time..Can you suggest any tools which will help in diagnosing the root > > cause behiond the data load. > > > Hi, > > first of all: there is no need to cross post on 4 lists. > If you have a performance problem, post on pgsql-performance. > > Second, please tell us which version of PostgreSQL on > which operating system you're using. Diagnosing your > problem might depend on which OS you use... > > Finally, explain what you mean by "the age of template0 is > increasing very rapidly", you mean "the size is increasing"? > > Bye, > Chris. > > > > -- > > Chris Mair > http://www.1006.org > > ------=_Part_144643_20270195.1157626141533 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

Hi,
 
Postgres Version used is 8.1.3
OS: Linux
 
 
'SELECT datname, age(datfrozenxid) FROM pg_database'
 
postgres       |       1575
xyz               | 1073743934
template1      |       1632
template0      |   61540256
 
This is the command which I tried and got the above output, and the number is increasing pretty fast for template0.
 
Please let me know if this a problem.
 
 
 
Regards,
Nimesh.

 
On 9/7/06, Chris Mair <chrisnospam@1006.org> wrote:
On Thu, 2006-09-07 at 16:01 +0530, Nimesh Satam wrote:

> I noticed that the age of  template0 is increasing very rapidly..Can
> you please let me know how we can control this ....and what causes
> such problems.
>
> We also noticed that the database slow downs heavily at a particular
> time..Can you suggest any tools which will help in diagnosing the root
> cause behiond the data load.


Hi,

first of all: there is no need to cross post on 4 lists.
If you have a performance problem, post on pgsql-performance.

Second, please tell us which version of PostgreSQL on
which operating system you're using. Diagnosing your
problem might depend on which OS you use...

Finally, explain what you mean by "the age of template0 is
increasing very rapidly", you mean "the size is increasing"?

Bye,
Chris.



--

Chris Mair
http://www.1006.org


------=_Part_144643_20270195.1157626141533--