From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: When xlogreader asks the callback function to read a page, make |
Date: | 2013-01-17 21:49:06 |
Message-ID: | E1TvxKc-0001dV-0E@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
When xlogreader asks the callback function to read a page, make sure we
get a large enough part of the page to include the beginning of the next
record we're interested in. The XLogPageRead callback uses the requested
length to decide which timeline to stream WAL from, and if the first call
is short, and the page contains a timeline switch, we'll repeatedly try
to stream that page from the old timeline, and never get across the
timeline switch.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/88228e6f1d26619756281c508212498f1de1eff5
Modified Files
--------------
src/backend/access/transam/xlogreader.c | 30 ++++++++++++------------------
1 files changed, 12 insertions(+), 18 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2013-01-18 09:59:47 | pgsql: Use the right timeline when beginning to stream from master. |
Previous Message | Heikki Linnakangas | 2013-01-17 21:49:05 | pgsql: I added a result set to START_STREAMING command, but neglected w |