Re: Help with finding checkpoint code

From: Alvaro Herrera <alvherre(at)atentus(dot)com>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Help with finding checkpoint code
Date: 2002-09-01 03:51:04
Message-ID: 20020831235104.0bc80f1d.alvherre@atentus.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

En Sat, 31 Aug 2002 23:27:08 -0400 (EDT)
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> escribió:

> I am trying to find when WAL log files are rotated. The message is:
>
> 2002-02-11 21:18:13 DEBUG: recycled transaction log file 0000000000000005
>
> and it is printed in MoveOfflineLogs(), and MoveOfflineLogs() is only
> called by CreateCheckPoint(), but I can't see where CreateCheckPoint()
> is called in normal operation. I see it called by CHECKPOINT, and on
> startup and shutdown, and from bootstrap, but where is it called during
> normal backend operation.

I see it on TruncateCLOG(), src/backend/access/transam/clog.c; that is
called by vacuum code. Also on CheckPoinDataBase(), macro in
src/backend/postmaster/postmaster.c (this is called on a periodic basis
AFAIU)

HTH

--
Alvaro Herrera (<alvherre[a]atentus.com>)
One man's impedance mismatch is another man's layer of abstraction.
(Lincoln Yeoh)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message J. R. Nield 2002-09-01 03:56:12 Re: Help with finding checkpoint code
Previous Message Bruce Momjian 2002-09-01 03:27:08 Help with finding checkpoint code