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
d819f5fe
Commit
d819f5fe
authored
Jul 04, 2000
by
Jan Wieck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moving toaster out of NO ELOG area in heap_update().
Jan
parent
651e98b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
src/backend/access/heap/heapam.c
src/backend/access/heap/heapam.c
+14
-14
No files found.
src/backend/access/heap/heapam.c
View file @
d819f5fe
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.7
8 2000/07/04 01:39:24 vadim
Exp $
* $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.7
9 2000/07/04 17:11:40 wieck
Exp $
*
*
*
*
* INTERFACE ROUTINES
* INTERFACE ROUTINES
...
@@ -1564,6 +1564,19 @@ l2:
...
@@ -1564,6 +1564,19 @@ l2:
newtup
->
t_data
->
t_infomask
&=
~
(
HEAP_XACT_MASK
);
newtup
->
t_data
->
t_infomask
&=
~
(
HEAP_XACT_MASK
);
newtup
->
t_data
->
t_infomask
|=
(
HEAP_XMAX_INVALID
|
HEAP_UPDATED
);
newtup
->
t_data
->
t_infomask
|=
(
HEAP_XMAX_INVALID
|
HEAP_UPDATED
);
#ifdef TUPLE_TOASTER_ACTIVE
/* ----------
* If this relation is enabled for toasting, let the toaster
* delete not any longer needed entries and create new ones to
* make the new tuple fit again.
* ----------
*/
if
(
HeapTupleHasExtended
(
&
oldtup
)
||
HeapTupleHasExtended
(
newtup
)
||
(
MAXALIGN
(
newtup
->
t_len
)
>
(
MaxTupleSize
/
4
)))
heap_tuple_toast_attrs
(
relation
,
newtup
,
&
oldtup
);
#endif
/* Find buffer for new tuple */
/* Find buffer for new tuple */
if
((
unsigned
)
MAXALIGN
(
newtup
->
t_len
)
<=
PageGetFreeSpace
((
Page
)
dp
))
if
((
unsigned
)
MAXALIGN
(
newtup
->
t_len
)
<=
PageGetFreeSpace
((
Page
)
dp
))
...
@@ -1582,19 +1595,6 @@ l2:
...
@@ -1582,19 +1595,6 @@ l2:
oldtup
.
t_data
->
t_infomask
&=
~
(
HEAP_XMAX_COMMITTED
|
oldtup
.
t_data
->
t_infomask
&=
~
(
HEAP_XMAX_COMMITTED
|
HEAP_XMAX_INVALID
|
HEAP_MARKED_FOR_UPDATE
);
HEAP_XMAX_INVALID
|
HEAP_MARKED_FOR_UPDATE
);
#ifdef TUPLE_TOASTER_ACTIVE
/* ----------
* If this relation is enabled for toasting, let the toaster
* delete not any longer needed entries and create new ones to
* make the new tuple fit again.
* ----------
*/
if
(
HeapTupleHasExtended
(
&
oldtup
)
||
HeapTupleHasExtended
(
newtup
)
||
(
MAXALIGN
(
newtup
->
t_len
)
>
(
MaxTupleSize
/
4
)))
heap_tuple_toast_attrs
(
relation
,
newtup
,
&
oldtup
);
#endif
/* record address of new tuple in t_ctid of old one */
/* record address of new tuple in t_ctid of old one */
oldtup
.
t_data
->
t_ctid
=
newtup
->
t_self
;
oldtup
.
t_data
->
t_ctid
=
newtup
->
t_self
;
...
...
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