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

Commit524366f

Browse files
committed
fix handling of implicit temp tables (pg_temp schema)
1 parent8f73f80 commit524366f

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

‎multimaster.c

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,18 +1139,19 @@ void MtmHandleApplyError(void)
11391139
{
11401140
ErrorData*edata=CopyErrorData();
11411141
switch (edata->sqlerrcode) {
1142-
caseERRCODE_DISK_FULL:
1143-
caseERRCODE_INSUFFICIENT_RESOURCES:
1144-
caseERRCODE_IO_ERROR:
1145-
caseERRCODE_DATA_CORRUPTED:
1146-
caseERRCODE_INDEX_CORRUPTED:
1147-
caseERRCODE_SYSTEM_ERROR:
1148-
caseERRCODE_INTERNAL_ERROR:
1149-
caseERRCODE_OUT_OF_MEMORY:
1150-
elog(WARNING,"Node is excluded from cluster because of non-recoverable error %d",edata->sqlerrcode);
1151-
MtmSwitchClusterMode(MTM_OUT_OF_SERVICE);
1152-
kill(PostmasterPid,SIGQUIT);
1153-
break;
1142+
caseERRCODE_DISK_FULL:
1143+
caseERRCODE_INSUFFICIENT_RESOURCES:
1144+
caseERRCODE_IO_ERROR:
1145+
caseERRCODE_DATA_CORRUPTED:
1146+
caseERRCODE_INDEX_CORRUPTED:
1147+
caseERRCODE_SYSTEM_ERROR:
1148+
caseERRCODE_INTERNAL_ERROR:
1149+
caseERRCODE_OUT_OF_MEMORY:
1150+
elog(WARNING,"Node is excluded from cluster because of non-recoverable error %d, %s, pid=%u",
1151+
edata->sqlerrcode,edata->message,getpid());
1152+
MtmSwitchClusterMode(MTM_OUT_OF_SERVICE);
1153+
kill(PostmasterPid,SIGQUIT);
1154+
break;
11541155
}
11551156
FreeErrorData(edata);
11561157
}
@@ -3158,7 +3159,8 @@ static void MtmProcessUtility(Node *parsetree, const char *queryString,
31583159
{
31593160
/* Do not replicate temp tables */
31603161
CreateStmt*stmt= (CreateStmt*)parsetree;
3161-
skipCommand=stmt->relation->relpersistence==RELPERSISTENCE_TEMP;
3162+
skipCommand=stmt->relation->relpersistence==RELPERSISTENCE_TEMP||
3163+
(stmt->relation->schemaname&&strcmp(stmt->relation->schemaname,"pg_temp")==0);
31623164
}
31633165
break;
31643166
caseT_IndexStmt:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp