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

Commit8937e40

Browse files
committed
fix handling of implicit temp tables (pg_temp schema)
1 parent0e22c9b commit8937e40

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

‎contrib/mmts/multimaster.c

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,18 +1140,19 @@ void MtmHandleApplyError(void)
11401140
{
11411141
ErrorData*edata=CopyErrorData();
11421142
switch (edata->sqlerrcode) {
1143-
caseERRCODE_DISK_FULL:
1144-
caseERRCODE_INSUFFICIENT_RESOURCES:
1145-
caseERRCODE_IO_ERROR:
1146-
caseERRCODE_DATA_CORRUPTED:
1147-
caseERRCODE_INDEX_CORRUPTED:
1148-
caseERRCODE_SYSTEM_ERROR:
1149-
caseERRCODE_INTERNAL_ERROR:
1150-
caseERRCODE_OUT_OF_MEMORY:
1151-
elog(WARNING,"Node is excluded from cluster because of non-recoverable error %d",edata->sqlerrcode);
1152-
MtmSwitchClusterMode(MTM_OUT_OF_SERVICE);
1153-
kill(PostmasterPid,SIGQUIT);
1154-
break;
1143+
caseERRCODE_DISK_FULL:
1144+
caseERRCODE_INSUFFICIENT_RESOURCES:
1145+
caseERRCODE_IO_ERROR:
1146+
caseERRCODE_DATA_CORRUPTED:
1147+
caseERRCODE_INDEX_CORRUPTED:
1148+
caseERRCODE_SYSTEM_ERROR:
1149+
caseERRCODE_INTERNAL_ERROR:
1150+
caseERRCODE_OUT_OF_MEMORY:
1151+
elog(WARNING,"Node is excluded from cluster because of non-recoverable error %d, %s, pid=%u",
1152+
edata->sqlerrcode,edata->message,getpid());
1153+
MtmSwitchClusterMode(MTM_OUT_OF_SERVICE);
1154+
kill(PostmasterPid,SIGQUIT);
1155+
break;
11551156
}
11561157
FreeErrorData(edata);
11571158
}
@@ -3164,7 +3165,8 @@ static void MtmProcessUtility(Node *parsetree, const char *queryString,
31643165
{
31653166
/* Do not replicate temp tables */
31663167
CreateStmt*stmt= (CreateStmt*)parsetree;
3167-
skipCommand=stmt->relation->relpersistence==RELPERSISTENCE_TEMP;
3168+
skipCommand=stmt->relation->relpersistence==RELPERSISTENCE_TEMP||
3169+
(stmt->relation->schemaname&&strcmp(stmt->relation->schemaname,"pg_temp")==0);
31683170
}
31693171
break;
31703172
caseT_IndexStmt:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp