Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
e57e991e
Commit
e57e991e
authored
24 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Improve comments for SearchSysCacheTuple and SearchSysCacheTupleCopy.
parent
05cd91a5
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/utils/cache/syscache.c
+10
-4
10 additions, 4 deletions
src/backend/utils/cache/syscache.c
with
10 additions
and
4 deletions
src/backend/utils/cache/syscache.c
+
10
−
4
View file @
e57e991e
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.5
0
2000/0
4/12 17:15:54 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/cache/syscache.c,v 1.5
1
2000/0
6/06 17:02:38 tgl
Exp $
*
*
* NOTES
* NOTES
* These routines allow the parser/planner/executor to perform
* These routines allow the parser/planner/executor to perform
...
@@ -456,8 +456,10 @@ InitCatalogCache()
...
@@ -456,8 +456,10 @@ InitCatalogCache()
/*
/*
* SearchSysCacheTupleCopy
* SearchSysCacheTupleCopy
*
*
* This is like SearchSysCacheTuple, except it returns a copy of the tuple
* This is like SearchSysCacheTuple, except it returns a palloc'd copy of
* that the user is required to pfree().
* the tuple. The caller should heap_freetuple() the returned copy when
* done with it. This routine should be used when the caller intends to
* continue to access the tuple for more than a very short period of time.
*/
*/
HeapTuple
HeapTuple
SearchSysCacheTupleCopy
(
int
cacheId
,
/* cache selection code */
SearchSysCacheTupleCopy
(
int
cacheId
,
/* cache selection code */
...
@@ -485,7 +487,11 @@ SearchSysCacheTupleCopy(int cacheId, /* cache selection code */
...
@@ -485,7 +487,11 @@ SearchSysCacheTupleCopy(int cacheId, /* cache selection code */
* Returns the cache copy of the tuple if one is found, NULL if not.
* Returns the cache copy of the tuple if one is found, NULL if not.
* The tuple is the 'cache' copy.
* The tuple is the 'cache' copy.
*
*
* XXX The tuple that is returned is NOT supposed to be pfree'd!
* CAUTION: The tuple that is returned must NOT be freed by the caller!
*
* CAUTION: The returned tuple may be flushed from the cache during
* subsequent cache lookup operations, or by shared cache invalidation.
* Callers should not expect the pointer to remain valid for long.
*/
*/
HeapTuple
HeapTuple
SearchSysCacheTuple
(
int
cacheId
,
/* cache selection code */
SearchSysCacheTuple
(
int
cacheId
,
/* cache selection code */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment