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
e552e9e5
Commit
e552e9e5
authored
22 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Improve relcache.c error reporting for the next guy who has to debug
this thing.
parent
91dfa1af
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/relcache.c
+11
-11
11 additions, 11 deletions
src/backend/utils/cache/relcache.c
with
11 additions
and
11 deletions
src/backend/utils/cache/relcache.c
+
11
−
11
View file @
e552e9e5
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.16
6
2002/07/1
2 18:43:18 tgl
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.16
7
2002/07/1
5 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
rd_id
reldesc 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
rd_node
reldesc 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
relname
reldesc 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
);
}
/*
...
...
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