Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
dd45d3ad
Commit
dd45d3ad
authored
Dec 17, 2011
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some long-obsolete references to XLogOpenRelation.
These were missed in commit
a213f1ee
, which removed that function.
parent
85df5dbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
src/backend/access/transam/README
src/backend/access/transam/README
+2
-4
src/backend/catalog/storage.c
src/backend/catalog/storage.c
+1
-1
No files found.
src/backend/access/transam/README
View file @
dd45d3ad
...
@@ -481,8 +481,7 @@ rdata array, even if some of the rdata items point into the buffer. This is
...
@@ -481,8 +481,7 @@ rdata array, even if some of the rdata items point into the buffer. This is
because you don't want XLogInsert to log the whole page contents. The
because you don't want XLogInsert to log the whole page contents. The
standard replay-routine pattern for this case is
standard replay-routine pattern for this case is
reln = XLogOpenRelation(rnode);
buffer = XLogReadBuffer(rnode, blkno, true);
buffer = XLogReadBuffer(reln, blkno, true);
Assert(BufferIsValid(buffer));
Assert(BufferIsValid(buffer));
page = (Page) BufferGetPage(buffer);
page = (Page) BufferGetPage(buffer);
...
@@ -501,8 +500,7 @@ The standard replay-routine pattern for this case is
...
@@ -501,8 +500,7 @@ The standard replay-routine pattern for this case is
if (record->xl_info & XLR_BKP_BLOCK_n)
if (record->xl_info & XLR_BKP_BLOCK_n)
<< do nothing, page was rewritten from logged copy >>;
<< do nothing, page was rewritten from logged copy >>;
reln = XLogOpenRelation(rnode);
buffer = XLogReadBuffer(rnode, blkno, false);
buffer = XLogReadBuffer(reln, blkno, false);
if (!BufferIsValid(buffer))
if (!BufferIsValid(buffer))
<< do nothing, page has been deleted >>;
<< do nothing, page has been deleted >>;
page = (Page) BufferGetPage(buffer);
page = (Page) BufferGetPage(buffer);
...
...
src/backend/catalog/storage.c
View file @
dd45d3ad
...
@@ -505,7 +505,7 @@ smgr_redo(XLogRecPtr lsn, XLogRecord *record)
...
@@ -505,7 +505,7 @@ smgr_redo(XLogRecPtr lsn, XLogRecord *record)
/*
/*
* Forcibly create relation if it doesn't exist (which suggests that
* Forcibly create relation if it doesn't exist (which suggests that
* it was dropped somewhere later in the WAL sequence). As in
* it was dropped somewhere later in the WAL sequence). As in
* XLog
OpenRelation
, we prefer to recreate the rel and replay the log
* XLog
ReadBuffer
, we prefer to recreate the rel and replay the log
* as best we can until the drop is seen.
* as best we can until the drop is seen.
*/
*/
smgrcreate
(
reln
,
MAIN_FORKNUM
,
true
);
smgrcreate
(
reln
,
MAIN_FORKNUM
,
true
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment