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

Commit445f1ac

Browse files
committed
heap_drop() should flush the relcache entry for the
relation being dropped.
1 parent69cc16f commit445f1ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/backend/catalog/heap.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.127 2000/05/20 23:11:29 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/catalog/heap.c,v 1.128 2000/05/25 21:25:32 tgl Exp $
1212
*
1313
*
1414
* INTERFACE ROUTINES
@@ -1578,12 +1578,15 @@ heap_drop_with_catalog(const char *relname)
15781578
void
15791579
heap_drop(Relationrel)
15801580
{
1581+
Oidrid=RelationGetRelid(rel);
1582+
15811583
ReleaseRelationBuffers(rel);
15821584
if (!(rel->rd_isnoname)|| !(rel->rd_unlinked))
15831585
smgrunlink(DEFAULT_SMGR,rel);
15841586
rel->rd_unlinked= TRUE;
15851587
heap_close(rel,NoLock);
15861588
RemoveFromNoNameRelList(rel);
1589+
RelationForgetRelation(rid);
15871590
}
15881591

15891592

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp