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

Commitbf347c6

Browse files
committed
Fix crash in CREATE UNLOGGED TABLE.
The code that created the init fork neglected to make sure that therelation was open at the smgr level before attempting to invoke smgr.This didn't happen every time; only when the relcache entry was rebuiltalong the way.Per report from Garick Hamlin.
1 parentc573486 commitbf347c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/backend/catalog/heap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,7 @@ heap_create_with_catalog(const char *relname,
12951295
{
12961296
Assert(relkind==RELKIND_RELATION||relkind==RELKIND_TOASTVALUE);
12971297

1298+
RelationOpenSmgr(new_rel_desc);
12981299
smgrcreate(new_rel_desc->rd_smgr,INIT_FORKNUM, false);
12991300
if (XLogIsNeeded())
13001301
log_smgrcreate(&new_rel_desc->rd_smgr->smgr_rnode.node,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp