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
e552e9e5
Commit
e552e9e5
authored
Jul 15, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve relcache.c error reporting for the next guy who has to debug
this thing.
parent
91dfa1af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
src/backend/utils/cache/relcache.c
src/backend/utils/cache/relcache.c
+11
-11
No files found.
src/backend/utils/cache/relcache.c
View file @
e552e9e5
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.16
6 2002/07/12 18:43:18 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.16
7 2002/07/15 01:57:51 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -238,12 +238,12 @@ do { \
(void *)&(RELATION->rd_id), \
HASH_REMOVE, NULL); \
if (idhentry == NULL) \
elog(WARNING, "trying to delete a reldesc that does not exist."); \
elog(WARNING, "trying to delete a r
d_id r
eldesc that does not exist."); \
nodentry = (RelNodeCacheEnt*)hash_search(RelationNodeCache, \
(void *)&(RELATION->rd_node), \
HASH_REMOVE, NULL); \
if (nodentry == NULL) \
elog(WARNING, "trying to delete a reldesc that does not exist."); \
elog(WARNING, "trying to delete a r
d_node r
eldesc that does not exist."); \
if (IsSystemNamespace(RelationGetNamespace(RELATION))) \
{ \
char *relname = RelationGetRelationName(RELATION); \
...
...
@@ -252,7 +252,7 @@ do { \
relname, \
HASH_REMOVE, NULL); \
if (namehentry == NULL) \
elog(WARNING, "trying to delete a reldesc that does not exist."); \
elog(WARNING, "trying to delete a rel
name rel
desc that does not exist."); \
} \
} while(0)
...
...
@@ -276,7 +276,7 @@ static HTAB *OpClassCache = NULL;
/* non-export function prototypes */
static
void
RelationClearRelation
(
Relation
relation
,
bool
rebuild
It
);
static
void
RelationClearRelation
(
Relation
relation
,
bool
rebuild
);
#ifdef ENABLE_REINDEX_NAILED_RELATIONS
static
void
RelationReloadClassinfo
(
Relation
relation
);
...
...
@@ -1652,7 +1652,7 @@ RelationReloadClassinfo(Relation relation)
* it's told to do; callers must determine which they want.
*/
static
void
RelationClearRelation
(
Relation
relation
,
bool
rebuild
It
)
RelationClearRelation
(
Relation
relation
,
bool
rebuild
)
{
MemoryContext
oldcxt
;
...
...
@@ -1719,7 +1719,7 @@ RelationClearRelation(Relation relation, bool rebuildIt)
* moving the physical RelationData record (so that the someone's
* pointer is still valid).
*/
if
(
!
rebuild
It
)
if
(
!
rebuild
)
{
/* ok to zap remaining substructure */
FreeTupleDesc
(
relation
->
rd_att
);
...
...
@@ -1806,7 +1806,7 @@ RelationClearRelation(Relation relation, bool rebuildIt)
static
void
RelationFlushRelation
(
Relation
relation
)
{
bool
rebuild
It
;
bool
rebuild
;
if
(
relation
->
rd_myxactonly
)
{
...
...
@@ -1814,17 +1814,17 @@ RelationFlushRelation(Relation relation)
* Local rels should always be rebuilt, not flushed; the relcache
* entry must live until RelationPurgeLocalRelation().
*/
rebuild
It
=
true
;
rebuild
=
true
;
}
else
{
/*
* Nonlocal rels can be dropped from the relcache if not open.
*/
rebuild
It
=
!
RelationHasReferenceCountZero
(
relation
);
rebuild
=
!
RelationHasReferenceCountZero
(
relation
);
}
RelationClearRelation
(
relation
,
rebuild
It
);
RelationClearRelation
(
relation
,
rebuild
);
}
/*
...
...
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