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

Commitb10edaf

Browse files
committed
Fix access to just-closed relcache entry.
It might be impossible for this to cause a problem in non-debug builds,since there'd be no opportunity for the relcache entry to get recycledbefore the fetch. It blows up nicely with -DRELCACHE_FORCE_RELEASE plusvalgrind, though.Evidently introduced by careless refactoring in commitf0e4475.Back-patch accordingly.Discussion:https://postgr.es/m/27543.1528758304@sss.pgh.pa.us
1 parent8585718 commitb10edaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/commands/tablecmds.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11502,12 +11502,12 @@ ATExecDropInherit(Relation rel, RangeVar *parent, LOCKMODE lockmode)
1150211502
/* Off to RemoveInheritance() where most of the work happens */
1150311503
RemoveInheritance(rel,parent_rel);
1150411504

11505-
/* keep our lock on the parent relation until commit */
11506-
heap_close(parent_rel,NoLock);
11507-
1150811505
ObjectAddressSet(address,RelationRelationId,
1150911506
RelationGetRelid(parent_rel));
1151011507

11508+
/* keep our lock on the parent relation until commit */
11509+
heap_close(parent_rel,NoLock);
11510+
1151111511
returnaddress;
1151211512
}
1151311513

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp