X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id B0C0F9FB258 for ; Thu, 7 Sep 2006 09:55:20 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 73585-05-3 for ; Thu, 7 Sep 2006 12:55:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from globalrelay.com (mail1.globalrelay.com [216.18.71.77]) by postgresql.org (Postfix) with ESMTP id D71469FA375 for ; Thu, 7 Sep 2006 09:55:08 -0300 (ADT) X-Virus-Scanned: Scanned by GRC-AntiVirus Gateway X-GR-Acctd: YES Received: from [67.90.96.2] (HELO DaveEMachine) by globalrelay.com (CommuniGate Pro SMTP 4.2.3) with ESMTP id 103722323; Thu, 07 Sep 2006 05:55:03 -0700 From: "Dave Dutcher" To: "'Nimesh Satam'" Cc: Subject: Re: [PATCHES] Template0 age is increasing speedily. Date: Thu, 7 Sep 2006 07:55:01 -0500 Message-ID: <012601c6d27c$d52be840$8300a8c0@tridecap.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0127_01C6D252.EC55E040" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 In-Reply-To: <965aa3ed0609070349t10565a86i9100cc9ec1b8b043@mail.gmail.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 Importance: Normal X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.135 tagged_above=0 required=5 tests=HTML_50_60, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200609/36 X-Sequence-Number: 20722 This is a multi-part message in MIME format. ------=_NextPart_000_0127_01C6D252.EC55E040 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable I would expect that the age of Template0 is increasing at the same rate = as every other database in your cluster. Transaction IDs are global across = all databases in the cluster, so as I understand it, executing a transaction = in any database will increase the age of all databases by 1. =20 -----Original Message----- From: pgsql-performance-owner@postgresql.org [mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Nimesh = Satam Sent: Thursday, September 07, 2006 5:49 AM To: Chris Mair Cc: pgsql-performance@postgresql.org Subject: Re: [PERFORM] [PATCHES] Template0 age is increasing speedily. Hi, =20 Postgres Version used is 8.1.3 OS: Linux =20 =20 'SELECT datname, age(datfrozenxid) FROM pg_database' =20 postgres | 1575 xyz | 1073743934 template1 | 1632 template0 | 61540256 =20 This is the command which I tried and got the above output, and the = number is increasing pretty fast for template0. =20 Please let me know if this a problem. =20 =20 =20 Regards, Nimesh. =20 On 9/7/06, Chris Mair wrote:=20 On Thu, 2006-09-07 at 16:01 +0530, Nimesh Satam wrote: > I noticed that the age of template0 is increasing very rapidly..Can=20 > 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=20 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"?=20 Bye, Chris. -- Chris Mair http://www.1006.org ------=_NextPart_000_0127_01C6D252.EC55E040 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Message
I=20 would expect that the age of Template0 is increasing at the same rate as = every=20 other database in your cluster.  Transaction IDs are global across = all=20 databases in the cluster, so as I understand it, executing a transaction = in any=20 database will increase the age of all databases by = 1.
 
-----Original Message-----
From:=20 pgsql-performance-owner@postgresql.org=20 [mailto:pgsql-performance-owner@postgresql.org] On Behalf Of = Nimesh=20 Satam
Sent: Thursday, September 07, 2006 5:49 = AM
To: Chris=20 Mair
Cc: pgsql-performance@postgresql.org
Subject: = Re:=20 [PERFORM] [PATCHES] Template0 age is increasing = speedily.


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

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

> I = noticed=20 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=20 database slow downs heavily at a particular
> time..Can you = suggest=20 any tools which will help in diagnosing the root
> cause = behiond the=20 data load.


Hi,

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

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

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

Bye,
Chris.



--

Chris=20 Mair
http://www.1006.org

=

------=_NextPart_000_0127_01C6D252.EC55E040--