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
b95f81a5
Commit
b95f81a5
authored
Jan 08, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some debugging support code (ifdef'd out in normal use).
parent
e2586c3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
src/backend/utils/cache/relcache.c
src/backend/utils/cache/relcache.c
+14
-5
No files found.
src/backend/utils/cache/relcache.c
View file @
b95f81a5
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.12
5 2001/01/06 21:53:18
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.12
6 2001/01/08 18:34:44
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1557,7 +1557,13 @@ RelationNameGetRelation(const char *relationName)
/* --------------------------------
* RelationClose - close an open relation
*
* Actually, we just decrement the refcount.
* Actually, we just decrement the refcount.
*
* NOTE: if compiled with -DRELCACHE_FORCE_RELEASE then relcache entries
* will be freed as soon as their refcount goes to zero. In combination
* with aset.c's CLOBBER_FREED_MEMORY option, this provides a good test
* to catch references to already-released relcache entries. It slows
* things down quite a bit, however.
* --------------------------------
*/
void
...
...
@@ -1565,6 +1571,11 @@ RelationClose(Relation relation)
{
/* Note: no locking manipulations needed */
RelationDecrementReferenceCount
(
relation
);
#ifdef RELCACHE_FORCE_RELEASE
if
(
RelationHasReferenceCountZero
(
relation
)
&&
!
relation
->
rd_myxactonly
)
RelationClearRelation
(
relation
,
false
);
#endif
}
#ifdef ENABLE_REINDEX_NAILED_RELATIONS
...
...
@@ -1603,6 +1614,7 @@ RelationReloadClassinfo(Relation relation)
return
;
}
#endif
/* ENABLE_REINDEX_NAILED_RELATIONS */
/* --------------------------------
* RelationClearRelation
*
...
...
@@ -1611,9 +1623,6 @@ RelationReloadClassinfo(Relation relation)
* usually used when we are notified of a change to an open relation
* (one with refcount > 0). However, this routine just does whichever
* it's told to do; callers must determine which they want.
*
* If we detect a change in the relation's TupleDesc, rules, or triggers
* while rebuilding, we complain unless refcount is 0.
* --------------------------------
*/
static
void
...
...
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