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

Commit7e54475

Browse files
knizhnikkelvich
authored andcommitted
Support local COPY ultility
1 parentfeaff21 commit7e54475

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎multimaster.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5110,6 +5110,7 @@ static void MtmProcessUtility(Node *parsetree, const char *queryString,
51105110
CopyStmt*copyStatement= (CopyStmt*)parsetree;
51115111
skipCommand= true;
51125112
if (copyStatement->is_from) {
5113+
ListCell*opt;
51135114
RangeVar*relation=copyStatement->relation;
51145115

51155116
if (relation!=NULL)
@@ -5124,6 +5125,17 @@ static void MtmProcessUtility(Node *parsetree, const char *queryString,
51245125
heap_close(rel,ShareLock);
51255126
}
51265127
}
5128+
5129+
foreach(opt,copyStatement->options)
5130+
{
5131+
DefElem*elem=lfirst(opt);
5132+
if (strcmp("local",elem->defname)==0) {
5133+
MtmTx.isDistributed= false;/* Skip */
5134+
MtmTx.snapshot=INVALID_CSN;
5135+
MtmTx.containsDML= false;
5136+
break;
5137+
}
5138+
}
51275139
}
51285140
caseT_CreateFunctionStmt:
51295141
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp