WAL question

From: Evgeny Gridasov <eugrid(at)fpm(dot)kubsu(dot)ru>
To: pgsql-general(at)postgresql(dot)org
Subject: WAL question
Date: 2007-01-12 13:23:06
Message-ID: 20070112162306.e4ad5581.eugrid@fpm.kubsu.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello.

Lets's imagine a sequence in time:
(1) Some transactions commit data (simple table inserts/updates).
(2) I get data from a table using select.
(3) A CHECKPOINT occurs, data from pg_xlog is copied to actual table data files.

Questions:

Where does PostgreSQL read data during (2) process?
For example, I've got some old data and recently committed data there(but not passed CHECKPOINT).

Would it scan both pg_xlog(for committed data that dind't pass CHECKPOINT) and table data files?

What happens if an index could be used?

Evgeny.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Amiel 2007-01-12 13:48:35 Re: Corrupt database? 8.1/FreeBSD6.0
Previous Message Ashish Karalkar 2007-01-12 13:12:32 error in open cursor