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

Commit1276aef

Browse files
committed
Fix problem with temp tables shown in regression test by Jan.
1 parent211ed36 commit1276aef

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

‎src/backend/storage/lmgr/lmgr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lmgr.c,v 1.35 1999/09/18 19:07:38 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lmgr.c,v 1.36 1999/11/17 23:51:21 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -118,7 +118,7 @@ RelationInitLockInfo(Relation relation)
118118
Assert(RelationIsValid(relation));
119119
Assert(OidIsValid(RelationGetRelid(relation)));
120120

121-
relname= (char*)RelationGetRelationName(relation);
121+
relname= (char*)RelationGetPhysicalRelationName(relation);
122122

123123
relation->rd_lockInfo.lockRelId.relId=RelationGetRelid(relation);
124124

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/cache/inval.c,v 1.28 1999/11/07 23:08:26 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/inval.c,v 1.29 1999/11/17 23:51:21 momjian Exp $
1111
*
1212
* Note - this code is real crufty...
1313
*
@@ -561,7 +561,7 @@ RegisterInvalid(bool send)
561561
#ifdefINVALIDDEBUG
562562
#defineRelationInvalidateHeapTuple_DEBUG1 \
563563
elog(DEBUG, "RelationInvalidateHeapTuple(%s, [%d,%d])", \
564-
RelationGetRelationName(relation), \
564+
RelationGetPhysicalRelationName(relation), \
565565
ItemPointerGetBlockNumber(&tuple->t_ctid), \
566566
ItemPointerGetOffsetNumber(&tuple->t_ctid))
567567
#else

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.77 1999/11/16 04:13:58 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.78 1999/11/17 23:51:21 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -133,7 +133,7 @@ typedef struct relnamecacheent
133133
do { \
134134
RelIdCacheEnt *idhentry; RelNameCacheEnt *namehentry; \
135135
char *relname; Oid reloid; bool found; \
136-
relname =RelationGetRelationName(RELATION); \
136+
relname =RelationGetPhysicalRelationName(RELATION); \
137137
namehentry = (RelNameCacheEnt*)hash_search(RelationNameCache, \
138138
relname, \
139139
HASH_ENTER, \
@@ -186,7 +186,7 @@ do { \
186186
do { \
187187
RelNameCacheEnt *namehentry; RelIdCacheEnt *idhentry; \
188188
char *relname; Oid reloid; bool found; \
189-
relname =RelationGetRelationName(RELATION); \
189+
relname =RelationGetPhysicalRelationName(RELATION); \
190190
namehentry = (RelNameCacheEnt*)hash_search(RelationNameCache, \
191191
relname, \
192192
HASH_REMOVE, \
@@ -1840,8 +1840,7 @@ RelCheckFetch(Relation relation)
18401840

18411841
if (found<ncheck)
18421842
elog(ERROR,"RelCheckFetch: %d record not found for rel %s",
1843-
ncheck-found,
1844-
RelationGetRelationName(relation));
1843+
ncheck-found,RelationGetRelationName(relation));
18451844

18461845
index_endscan(sd);
18471846
pfree(sd);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp