Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite552e9e

Browse files
committed
Improve relcache.c error reporting for the next guy who has to debug
this thing.
1 parent91dfa1a commite552e9e

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

‎src/backend/utils/cache/relcache.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.166 2002/07/12 18:43:18 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.167 2002/07/15 01:57:51 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -238,12 +238,12 @@ do { \
238238
(void *)&(RELATION->rd_id), \
239239
HASH_REMOVE, NULL); \
240240
if (idhentry == NULL) \
241-
elog(WARNING, "trying to delete a reldesc that does not exist."); \
241+
elog(WARNING, "trying to delete ard_idreldesc that does not exist."); \
242242
nodentry = (RelNodeCacheEnt*)hash_search(RelationNodeCache, \
243243
(void *)&(RELATION->rd_node), \
244244
HASH_REMOVE, NULL); \
245245
if (nodentry == NULL) \
246-
elog(WARNING, "trying to delete a reldesc that does not exist."); \
246+
elog(WARNING, "trying to delete ard_nodereldesc that does not exist."); \
247247
if (IsSystemNamespace(RelationGetNamespace(RELATION))) \
248248
{ \
249249
char *relname = RelationGetRelationName(RELATION); \
@@ -252,7 +252,7 @@ do { \
252252
relname, \
253253
HASH_REMOVE, NULL); \
254254
if (namehentry == NULL) \
255-
elog(WARNING, "trying to delete a reldesc that does not exist."); \
255+
elog(WARNING, "trying to delete arelnamereldesc that does not exist."); \
256256
} \
257257
} while(0)
258258

@@ -276,7 +276,7 @@ static HTAB *OpClassCache = NULL;
276276

277277
/* non-export function prototypes */
278278

279-
staticvoidRelationClearRelation(Relationrelation,boolrebuildIt);
279+
staticvoidRelationClearRelation(Relationrelation,boolrebuild);
280280

281281
#ifdefENABLE_REINDEX_NAILED_RELATIONS
282282
staticvoidRelationReloadClassinfo(Relationrelation);
@@ -1652,7 +1652,7 @@ RelationReloadClassinfo(Relation relation)
16521652
* it's told to do; callers must determine which they want.
16531653
*/
16541654
staticvoid
1655-
RelationClearRelation(Relationrelation,boolrebuildIt)
1655+
RelationClearRelation(Relationrelation,boolrebuild)
16561656
{
16571657
MemoryContextoldcxt;
16581658

@@ -1719,7 +1719,7 @@ RelationClearRelation(Relation relation, bool rebuildIt)
17191719
* moving the physical RelationData record (so that the someone's
17201720
* pointer is still valid).
17211721
*/
1722-
if (!rebuildIt)
1722+
if (!rebuild)
17231723
{
17241724
/* ok to zap remaining substructure */
17251725
FreeTupleDesc(relation->rd_att);
@@ -1806,25 +1806,25 @@ RelationClearRelation(Relation relation, bool rebuildIt)
18061806
staticvoid
18071807
RelationFlushRelation(Relationrelation)
18081808
{
1809-
boolrebuildIt;
1809+
boolrebuild;
18101810

18111811
if (relation->rd_myxactonly)
18121812
{
18131813
/*
18141814
* Local rels should always be rebuilt, not flushed; the relcache
18151815
* entry must live until RelationPurgeLocalRelation().
18161816
*/
1817-
rebuildIt= true;
1817+
rebuild= true;
18181818
}
18191819
else
18201820
{
18211821
/*
18221822
* Nonlocal rels can be dropped from the relcache if not open.
18231823
*/
1824-
rebuildIt= !RelationHasReferenceCountZero(relation);
1824+
rebuild= !RelationHasReferenceCountZero(relation);
18251825
}
18261826

1827-
RelationClearRelation(relation,rebuildIt);
1827+
RelationClearRelation(relation,rebuild);
18281828
}
18291829

18301830
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp