Re: Crash recovery - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: Crash recovery
Date
Msg-id 5278DB0B.30906@vmware.com
Whole thread Raw
In response to Crash recovery  (Soroosh Sardari <soroosh.sardari@gmail.com>)
List pgsql-hackers
On 05.11.2013 13:21, Soroosh Sardari wrote:
> When PG crashes or the computer turned down unexpectedly, next time
> postmaster
> starts up, it does the crash recovery, actually redo xlog records, vacuum,
> etc.
>
> What module is responsible for crash recovery?

See src/backend/access/transam/xlog.c. The code to read the WAL is 
there. It calls redo-routines in other modules, see e.g heap_redo for 
replaying heap records, btree_redo for B-tree index records and so forth.

- Heikki



pgsql-hackers by date:

Previous
From: Soroosh Sardari
Date:
Subject: Crash recovery
Next
From: Heikki Linnakangas
Date:
Subject: Re: [PATCH] configure: add git describe output to PG_VERSION when building a git tree