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

Commit79647ee

Browse files
committed
Fix bug in GIN WAL redo cleanup function: don't free fake relcache entry
while it's still being used.Backpatch to 8.4, where the fake relcache method was introduced.
1 parent09c0747 commit79647ee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/backend/access/gin/ginxlog.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/access/gin/ginxlog.c,v 1.21 2010/01/02 16:57:33 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/access/gin/ginxlog.c,v 1.22 2010/02/09 20:31:24 heikki Exp $
1212
*-------------------------------------------------------------------------
1313
*/
1414
#include"postgres.h"
@@ -777,8 +777,6 @@ ginContinueSplit(ginIncompleteSplit *split)
777777
GinPageGetOpaque(page)->maxoff))->key;
778778
}
779779

780-
FreeFakeRelcacheEntry(reln);
781-
782780
btree.rightblkno=split->rightBlkno;
783781

784782
stack.blkno=split->leftBlkno;
@@ -789,6 +787,8 @@ ginContinueSplit(ginIncompleteSplit *split)
789787
findParents(&btree,&stack,split->rootBlkno);
790788
ginInsertValue(&btree,stack.parent);
791789

790+
FreeFakeRelcacheEntry(reln);
791+
792792
UnlockReleaseBuffer(buffer);
793793
}
794794

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp