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
571dbe46
Commit
571dbe46
authored
Mar 25, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve comments for xlog item size #defines.
parent
5fb00d42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
src/include/access/htup.h
src/include/access/htup.h
+11
-4
No files found.
src/include/access/htup.h
View file @
571dbe46
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: htup.h,v 1.4
7 2001/03/22 04:00:27 momjian
Exp $
* $Id: htup.h,v 1.4
8 2001/03/25 22:40:58 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -83,6 +83,11 @@ typedef HeapTupleHeaderData *HeapTupleHeader;
/*
* All what we need to find changed tuple (18 bytes)
*
* NB: on most machines, sizeof(xl_heaptid) will include some trailing pad
* bytes for alignment. We don't want to store the pad space in the XLOG,
* so use SizeOfHeapTid for space calculations. Similar comments apply for
* the other xl_FOO structs.
*/
typedef
struct
xl_heaptid
{
...
...
@@ -90,13 +95,15 @@ typedef struct xl_heaptid
ItemPointerData
tid
;
/* changed tuple id */
}
xl_heaptid
;
#define SizeOfHeapTid (offsetof(xl_heaptid, tid) + SizeOfIptrData)
/* This is what we need to know about delete */
typedef
struct
xl_heap_delete
{
xl_heaptid
target
;
/* deleted tuple id */
}
xl_heap_delete
;
#define SizeOfHeapDelete (offsetof(xl_heap
tid, tid) + SizeOfIptrData
)
#define SizeOfHeapDelete (offsetof(xl_heap
_delete, target) + SizeOfHeapTid
)
typedef
struct
xl_heap_header
{
...
...
@@ -115,14 +122,14 @@ typedef struct xl_heap_insert
/* xl_heap_header & TUPLE DATA FOLLOWS AT END OF STRUCT */
}
xl_heap_insert
;
#define SizeOfHeapInsert (offsetof(xl_heap
tid, tid) + SizeOfIptrData
)
#define SizeOfHeapInsert (offsetof(xl_heap
_insert, target) + SizeOfHeapTid
)
/* This is what we need to know about update|move */
typedef
struct
xl_heap_update
{
xl_heaptid
target
;
/* deleted tuple id */
ItemPointerData
newtid
;
/* new inserted tuple id */
/* NEW TUPLE xl_heap_header (
XMIN & XMAX FOR
MOVE OP) */
/* NEW TUPLE xl_heap_header (
PLUS xmax & xmin IF
MOVE OP) */
/* and TUPLE DATA FOLLOWS AT END OF STRUCT */
}
xl_heap_update
;
...
...
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