Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 068221337BEE for ; Fri, 1 Apr 2011 13:53:10 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 63147-01-4 for ; Fri, 1 Apr 2011 16:53:01 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.illumen.com (unknown [64.207.29.137]) by mail.postgresql.org (Postfix) with ESMTP id 962AD1337C69 for ; Fri, 1 Apr 2011 13:49:58 -0300 (ADT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01CBF08C.D4BFCA7F" Subject: Re: Too many WAL(s) despite low transaction Date: Fri, 1 Apr 2011 10:49:56 -0600 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ADMIN] Too many WAL(s) despite low transaction Thread-Index: AcvwHHnVRXrBVc6hRgSvEKlrXyoPwwAcCf6Q References: <20110401004240.GA4116@tamriel.snowman.net><20110401010336.GB4116@tamriel.snowman.net><20110401013853.GC4116@tamriel.snowman.net><20110401022209.GD4116@tamriel.snowman.net><20110401023555.GE4116@tamriel.snowman.net> From: "Benjamin Krajmalnik" To: "Selva manickaraja" , "Stephen Frost" Cc: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.106 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001, RDNS_NONE=0.793 X-Spam-Level: X-Archive-Number: 201104/28 X-Sequence-Number: 37209 This is a multi-part message in MIME format. ------_=_NextPart_001_01CBF08C.D4BFCA7F Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable You can check the running processes and grep aotovacuum. You should see a launcher process which is always running. If you use pgAdmin you can also look at the table statistics from the GUI and see when was the last time autovacuum or autoanalyze ran on each table. =20 =20 From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Selva manickaraja Sent: Thursday, March 31, 2011 9:25 PM To: Stephen Frost Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] Too many WAL(s) despite low transaction =20 =20 On Fri, Apr 1, 2011 at 10:35 AM, Stephen Frost wrote: * Selva manickaraja (mavles78@gmail.com) wrote: > Where you mentioned "after the reload" I suppose you meant restart right? I'm not sure offhand if it requires a reload or a restart, that's why I suggested doing a reload than then checking the logs to see if a restart is required. I have put it in. Log file does not complaint, neither do I see the WAL(s) reducing. So I'm waiting for Friday lunch time in 1 hour to restart the db. =20 =09 > About compressing you mentioned iirc, but how do I use it? are there any > examples. I read about pg_compress before. Is that same? =20 No, I meant "use gzip". OK, I saw a sample in the PostgreSQL site, I will try that on the development machine first. =20 > The configuration file shows that autovacuum=3Don and track_count=3Don to be > commented out. That means that it is not running right? If that's the case, > just uncommenting it now should get it working right? Commented out means that the default value is used, which is on for both of those. That means that autovacuum should already be running. Is there some reason you think it isn't? I see. Cause I was thinking that all these surge of WAL was due to the fact that autovacuum was not running. Is there a utility to check if autovacuum is running or not?=20 Once the db is restarted, I will post the results to you to let you know how well the WAL(s) are fairing.=20 =09 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) =09 iEYEARECAAYFAk2VOgsACgkQrzgMPqB3kignEgCdFE+Ij+EbX+zC/rUtugZrG1nA sHoAoIZlmfjTlONs0fPA//Rz6g0HRoVn =3DD+LS -----END PGP SIGNATURE----- =20 ------_=_NextPart_001_01CBF08C.D4BFCA7F Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

You can check the running processes and grep = aotovacuum.

You should see a launcher process which is always = running.

If you use pgAdmin you can also look at the table statistics from the = GUI and see when was the last time autovacuum or autoanalyze ran on each = table.

 

 

From:= = pgsql-admin-owner@postgresql.org = [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of Selva = manickaraja
Sent: Thursday, March 31, 2011 9:25 = PM
To: Stephen Frost
Cc: = pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Too many = WAL(s) despite low transaction

 

 

On Fri, Apr 1, 2011 at 10:35 AM, Stephen Frost <sfrost@snowman.net> = wrote:

* Selva manickaraja (mavles78@gmail.com) = wrote:

> Where you mentioned "after the = reload" I suppose you meant restart right?

I'm not sure offhand if it requires a reload or a = restart, that's why I
suggested doing a reload than then checking the = logs to see if a restart
is required.

I have put it in. Log file does not complaint, neither = do I see the WAL(s) reducing. So I'm waiting for Friday lunch time in 1 = hour to restart the db.
 


> About compressing you mentioned = iirc, but how do I use it? are there any
> examples. I read about = pg_compress before. Is that = same?

 

No, I = meant "use gzip".

OK, I saw a sample in the  PostgreSQL site, I = will try that on the development machine = first.

 

> The configuration file shows that = autovacuum=3Don and track_count=3Don to be
> commented out. That = means that it is not running right? If that's the case,
> just = uncommenting it now should get it working right?

Commented out means that the default value is used, = which is on for both
of those.  That means that autovacuum = should already be running.  Is
there some reason you think it = isn't?

I see. Cause = I was thinking that all these surge of WAL was due to the fact that = autovacuum was not running. Is there a utility to check if autovacuum is = running or not?


Once the db is restarted, I will post = the results to you to let you know how well the WAL(s) are fairing. =


-----BEGIN PGP = SIGNATURE-----
Version: GnuPG v1.4.10 = (GNU/Linux)

iEYEARECAAYFAk2VOgsACgkQrzgMPqB3kignEgCdFE+Ij+EbX+zC/r= UtugZrG1nA
sHoAoIZlmfjTlONs0fPA//Rz6g0HRoVn
=3DD+LS
-----END = PGP SIGNATURE-----

 

------_=_NextPart_001_01CBF08C.D4BFCA7F--