pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Koichi Suzuki <koichi.szk@gmail.com>
To: pgsql-hackers@postgresql.org
To: pgsql-patches@postgresql.org
Subject: Re: [PATCHES] Full page writes improvement, code update
Date: Sat, 31 Mar 2007 09:37:01 +0900
Message-ID: <a778a7260703301737l486aa5ebo830f0ac269a1fb15@mail.gmail.com> (raw)

Simon;
Tom;

Koichi is writing.

Your question is how to determine WAL record generated between
pg_start_backup and pg_stop_backup and here's an answer.

XLogInsert( ) already has a logic to determine if inserting WAL record
is between pg_start_backup and pg_stop_backup.   Currently it is used
to remove full_page_writes when full_page_writes=off.   We can use
this to mark WAL records.   We have one bit not used in WAL record
header, the last bit of xl_info, where upper four bits are used to
indicate the resource manager and three of the rest are used to
indicate number of full page writes included in the record.

So in my proposal, this unused bit is used to mark that full page
writes must not be removed at offline optimization by pg_complesslog.

Sorry I didn't have mailing list capability from home and have just
completed my subscription from
home.   I had to create new thread to continue my post.  Sorry for confusion.

Please refer to the original thread about this discussion.

Best Regards;

-- 
------
Koichi Suzuki



view thread (64+ messages)  latest in thread

Message-ID: <a778a7260703301737l486aa5ebo830f0ac269a1fb15@mail.gmail.com>
Permalink:  ../a778a7260703301737l486aa5ebo830f0ac269a1fb15@mail.gmail.com/
Also on:    postgresql.org/message-id/a778a7260703301737l486aa5ebo830f0ac269a1fb15@mail.gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: koichi.szk@gmail.com, pgsql-patches@postgresql.org
  Subject: Re: [PATCHES] Full page writes improvement, code update
  In-Reply-To: <a778a7260703301737l486aa5ebo830f0ac269a1fb15@mail.gmail.com>

* 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