pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Gourish Singbal <gourish@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: pg_clog questions
Date: Fri, 26 May 2006 08:20:57 -0400
Message-ID: <20060526122057.GB21555@surnet.cl> (raw)
In-Reply-To: <674d1f8a0605260008h1826dc50t21f4e52fab8e41b6@mail.gmail.com>
References: <8511B4970E0D124898E973DF496F9B432516EA@stash.stackdump.local>
	<20060525223944.GO13700@surnet.cl>
	<674d1f8a0605252339k248ed8fay33c56e3939843417@mail.gmail.com>
	<674d1f8a0605260008h1826dc50t21f4e52fab8e41b6@mail.gmail.com>

Gourish Singbal wrote:
> Wanted to know when is the feature of automatically removing the  unwanted
> pg_clog files going to be implemented in postgresql ...
> 
> http://www.postgresql.org/docs/7.4/interactive/wal-benefits-later.html
> 
> this link is not present in 8.1.4 docs ...

Well, we certainly do remove unneeded pg_clog files -- that's why yours
were removed after you vacuumed all databases that needed them.

We just need a better way of marking them as no longer needed.

That section was removed from the docs because it was no longer
relevant.  All features mentioned there are either implemented or
considered not going to ever be implemented (e.g. UNDO).

> >But still these were too many files hence decide to peform vacuum freeze
> >on template1 and postgres databases. on finishing .. checked the pg_clog 
> >dir
> >and found that there was just one file there
> >
> >drwx------  10 postgres wheel    632 2006-05-25 23:15 ..
> >drwx------   2 postgres wheel     72 2006-05-25 23:20 .
> >-rw-------   1 postgres wheel 172032 2006-05-25 23:35 016C
> >
> >and if i am not mistaken this is the only file that the postgres is using
> >at this time.

This is the file that your databases need, which is why it's the only
file that remained.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



view thread (12+ messages)

Message-ID: <20060526122057.GB21555@surnet.cl>
Permalink:  ../20060526122057.GB21555@surnet.cl/
Also on:    postgresql.org/message-id/20060526122057.GB21555@surnet.cl

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: alvherre@commandprompt.com, gourish@gmail.com
  Subject: Re: pg_clog questions
  In-Reply-To: <20060526122057.GB21555@surnet.cl>
  References: <8511B4970E0D124898E973DF496F9B432516EA@stash.stackdump.local> <20060525223944.GO13700@surnet.cl> <674d1f8a0605252339k248ed8fay33c56e3939843417@mail.gmail.com> <674d1f8a0605260008h1826dc50t21f4e52fab8e41b6@mail.gmail.com> <20060526122057.GB21555@surnet.cl>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox