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
c193f19a
Commit
c193f19a
authored
Dec 30, 2000
by
Vadim B. Mikheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed misprint in heap update WALoging.
parent
c0f9597b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
5 deletions
+24
-5
src/backend/access/heap/heapam.c
src/backend/access/heap/heapam.c
+6
-2
src/backend/access/transam/xlog.c
src/backend/access/transam/xlog.c
+18
-3
No files found.
src/backend/access/heap/heapam.c
View file @
c193f19a
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.10
3 2000/12/28 13:00:06
vadim Exp $
* $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.10
4 2000/12/30 06:52:33
vadim Exp $
*
*
* INTERFACE ROUTINES
...
...
@@ -1665,6 +1665,10 @@ l2:
* without reading log if xact will abort before update is logged.
* In the event of crash prio logging, TQUAL routines will see
* HEAP_XMAX_UNLOGGED flag...
*
* NOTE: this trick is useless currently but saved for future
* when we'll implement UNDO and will re-use transaction IDs
* after postmaster startup.
*/
_locked_tuple_
.
node
=
relation
->
rd_node
;
_locked_tuple_
.
tid
=
*
otid
;
...
...
@@ -2066,7 +2070,7 @@ log_heap_update(Relation reln, Buffer oldbuf, ItemPointerData from,
hsize
+=
(
2
*
sizeof
(
TransactionId
));
}
rdata
[
2
].
buffer
=
newbuf
;
rdata
[
2
].
data
=
(
char
*
)
&
xlhdr
;
rdata
[
2
].
data
=
(
char
*
)
xlhdr
;
rdata
[
2
].
len
=
hsize
;
rdata
[
2
].
next
=
&
(
rdata
[
3
]);
...
...
src/backend/access/transam/xlog.c
View file @
c193f19a
...
...
@@ -6,7 +6,7 @@
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.4
6 2000/12/29 21:31:21 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.4
7 2000/12/30 06:52:34 vadim
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -2243,9 +2243,24 @@ xlog_desc(char *buf, uint8 xl_info, char* rec)
static
void
xlog_outrec
(
char
*
buf
,
XLogRecord
*
record
)
{
sprintf
(
buf
+
strlen
(
buf
),
"prev %u/%u; xprev %u/%u; xid %u: %s"
,
int
bkpb
;
int
i
;
sprintf
(
buf
+
strlen
(
buf
),
"prev %u/%u; xprev %u/%u; xid %u"
,
record
->
xl_prev
.
xlogid
,
record
->
xl_prev
.
xrecoff
,
record
->
xl_xact_prev
.
xlogid
,
record
->
xl_xact_prev
.
xrecoff
,
record
->
xl_xid
,
record
->
xl_xid
);
for
(
i
=
0
,
bkpb
=
0
;
i
<
2
;
i
++
)
{
if
(
!
(
record
->
xl_info
&
(
XLR_SET_BKP_BLOCK
(
i
))))
continue
;
bkpb
++
;
}
if
(
bkpb
)
sprintf
(
buf
+
strlen
(
buf
),
"; bkpb %d"
,
bkpb
);
sprintf
(
buf
+
strlen
(
buf
),
": %s"
,
RmgrTable
[
record
->
xl_rmid
].
rm_name
);
}
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