Re: Where Can I Find The Code Segment For WAL Control?

From: 王宝兵 <wangbaobing(at)gmail(dot)com>
To: <pgsql-novice(at)postgresql(dot)org>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Where Can I Find The Code Segment For WAL Control?
Date: 2006-03-10 06:34:13
Message-ID: 44111DE5.00000C.02120@WANGBAOBING
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I am now trying to develop the PG to support real-time backup.My
architecture is somehow similar to the "Database Mirroring" technology of
SQL Server 2005.The server end of the system is consisted of two DB servers
one is the Principal server,the other is the Mirror server.whenever the
Principal flushes its log buffer to the local log file,it must send the
content of its buffer to the Mirror simultaneously.After the mirror receives
the buffer,it write to its own log file and send a response message to the
Principal,then the Mirror redo/undo its log.By this way, we can guarantee
the database instances of the two servers identical.

But now I encounter a problem.I don't know where the functions to control
log buffer are.Which code segment may I refer to?

I have just participated the PG project for a short time,and I will
appreciate your help very much!

Look forward to you all!

Charlie Wang

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas DCP SD 2006-03-10 08:57:28 Re: Merge algorithms for large numbers of "tapes"
Previous Message Marc G. Fournier 2006-03-10 06:07:44 Re: [COMMITTERS] pgsql: Remove Jan Wieck's name from