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

Commit5829082

Browse files
committed
Keep heap open until new heap generated in RMV.
Early close became apparent when invalidation messages wereprocessed in a new location under CLOBBER_CACHE_ALWAYS builds, dueto additional locking.Back-patch to 9.3
1 parent0ea5325 commit5829082

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/backend/commands/matview.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,6 @@ ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
239239

240240
owner=matviewRel->rd_rel->relowner;
241241

242-
heap_close(matviewRel,NoLock);
243-
244242
/*
245243
* Create the transient table that will receive the regenerated data.
246244
* Lock it against access by any other process until commit (by which time
@@ -255,6 +253,8 @@ ExecRefreshMatView(RefreshMatViewStmt *stmt, const char *queryString,
255253
if (!stmt->skipData)
256254
refresh_matview_datafill(dest,dataQuery,queryString,owner);
257255

256+
heap_close(matviewRel,NoLock);
257+
258258
/* Make the matview match the newly generated data. */
259259
if (concurrent)
260260
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp