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
852a26f7
Commit
852a26f7
authored
Jul 06, 2001
by
Hiroshi Inoue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix my old fault(returns auto variable reference).
parent
21af10ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
15 deletions
+10
-15
src/backend/access/heap/heapam.c
src/backend/access/heap/heapam.c
+3
-2
src/backend/utils/adt/tid.c
src/backend/utils/adt/tid.c
+7
-13
No files found.
src/backend/access/heap/heapam.c
View file @
852a26f7
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.12
1 2001/06/29 21:08:23 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/access/heap/heapam.c,v 1.12
2 2001/07/06 09:41:36 inoue
Exp $
*
*
* INTERFACE ROUTINES
...
...
@@ -1024,7 +1024,8 @@ heap_get_latest_tid(Relation relation,
{
if
(
linkend
)
return
NULL
;
return
heap_get_latest_tid
(
relation
,
snapshot
,
&
ctid
);
heap_get_latest_tid
(
relation
,
snapshot
,
&
ctid
);
*
tid
=
ctid
;
}
return
tid
;
...
...
src/backend/utils/adt/tid.c
View file @
852a26f7
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/tid.c,v 1.2
4 2001/03/22 03:59:54 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/tid.c,v 1.2
5 2001/07/06 09:41:36 inoue
Exp $
*
* NOTES
* input routine largely stolen from boxin().
...
...
@@ -129,17 +129,14 @@ currtid_byreloid(PG_FUNCTION_ARGS)
{
Oid
reloid
=
PG_GETARG_OID
(
0
);
ItemPointer
tid
=
PG_GETARG_ITEMPOINTER
(
1
);
ItemPointer
result
,
ret
;
ItemPointer
result
;
Relation
rel
;
result
=
(
ItemPointer
)
palloc
(
sizeof
(
ItemPointerData
));
ItemPointer
SetInvalid
(
result
);
ItemPointer
Copy
(
tid
,
result
);
if
((
rel
=
heap_open
(
reloid
,
AccessShareLock
))
!=
NULL
)
{
ret
=
heap_get_latest_tid
(
rel
,
SnapshotNow
,
tid
);
if
(
ret
)
ItemPointerCopy
(
ret
,
result
);
heap_get_latest_tid
(
rel
,
SnapshotNow
,
result
);
heap_close
(
rel
,
AccessShareLock
);
}
else
...
...
@@ -153,8 +150,7 @@ currtid_byrelname(PG_FUNCTION_ARGS)
{
text
*
relname
=
PG_GETARG_TEXT_P
(
0
);
ItemPointer
tid
=
PG_GETARG_ITEMPOINTER
(
1
);
ItemPointer
result
,
ret
;
ItemPointer
result
;
char
*
str
;
Relation
rel
;
...
...
@@ -162,12 +158,10 @@ currtid_byrelname(PG_FUNCTION_ARGS)
PointerGetDatum
(
relname
)));
result
=
(
ItemPointer
)
palloc
(
sizeof
(
ItemPointerData
));
ItemPointer
SetInvalid
(
result
);
ItemPointer
Copy
(
tid
,
result
);
if
((
rel
=
heap_openr
(
str
,
AccessShareLock
))
!=
NULL
)
{
ret
=
heap_get_latest_tid
(
rel
,
SnapshotNow
,
tid
);
if
(
ret
)
ItemPointerCopy
(
ret
,
result
);
heap_get_latest_tid
(
rel
,
SnapshotNow
,
result
);
heap_close
(
rel
,
AccessShareLock
);
}
else
...
...
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