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

Commita31771a

Browse files
committed
Fix bug in handling tables without primary key
1 parentf4c9a73 commita31771a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

‎contrib/mmts/multimaster.c‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2400,15 +2400,18 @@ MtmExecutorFinish(QueryDesc *queryDesc)
24002400
for (i=0;i<estate->es_num_result_relations;i++) {
24012401
Relationrel=estate->es_result_relations[i].ri_RelationDesc;
24022402
if (RelationNeedsWAL(rel)) {
2403+
if (MtmIgnoreTablesWithoutPk) {
2404+
if (!rel->rd_indexvalid) {
2405+
RelationGetIndexList(rel);
2406+
}
2407+
if (rel->rd_replidindex==InvalidOid) {
2408+
MtmMakeRelationLocal(RelationGetRelid(rel));
2409+
continue;
2410+
}
2411+
}
24032412
MtmTx.containsDML= true;
24042413
break;
24052414
}
2406-
if (MtmIgnoreTablesWithoutPk) {
2407-
if (!rel->rd_indexvalid) {
2408-
RelationGetIndexList(rel);
2409-
}
2410-
MtmMakeRelationLocal(rel->rd_replidindex);
2411-
}
24122415
}
24132416
}
24142417
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp