From: | Heikki Linnakangas <hlinnakangas(at)vmware(dot)com> |
---|---|
To: | Soroosh Sardari <soroosh(dot)sardari(at)gmail(dot)com> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Crash recovery |
Date: | 2013-11-05 11:48:27 |
Message-ID: | 5278DB0B.30906@vmware.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2013-11-05 12:06:26 | Re: [PATCH] configure: add git describe output to PG_VERSION when building a git tree |
Previous Message | Soroosh Sardari | 2013-11-05 11:21:28 | Crash recovery |