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

Commit949d5a1

Browse files
committed
get rid of warnings in postgres_fdw
1 parent35a5b2f commit949d5a1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎contrib/postgres_fdw/connection.c‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,8 +588,8 @@ pgfdw_xact_callback(XactEvent event, void *arg)
588588
/* Commit all remote transactions during pre-commit */
589589
do_sql_send_command(entry->conn,"COMMIT TRANSACTION");
590590
continue;
591-
caseXACT_EVENT_PRE_PREPARE:
592591

592+
caseXACT_EVENT_PRE_PREPARE:
593593
/*
594594
* We disallow remote transactions that modified anything,
595595
* since it's not very reasonable to hold them open until
@@ -603,6 +603,7 @@ pgfdw_xact_callback(XactEvent event, void *arg)
603603
(errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
604604
errmsg("cannot prepare a transaction that modified remote tables")));
605605
break;
606+
606607
caseXACT_EVENT_PARALLEL_COMMIT:
607608
caseXACT_EVENT_COMMIT:
608609
caseXACT_EVENT_PREPARE:
@@ -630,6 +631,7 @@ pgfdw_xact_callback(XactEvent event, void *arg)
630631
entry->have_prep_stmt= false;
631632
entry->have_error= false;
632633
break;
634+
633635
caseXACT_EVENT_PARALLEL_ABORT:
634636
caseXACT_EVENT_ABORT:
635637
/* Assume we might have lost track of prepared statements */
@@ -653,6 +655,12 @@ pgfdw_xact_callback(XactEvent event, void *arg)
653655
entry->have_error= false;
654656
}
655657
break;
658+
659+
caseXACT_EVENT_START:
660+
caseXACT_EVENT_ABORT_PREPARED:
661+
caseXACT_EVENT_COMMIT_PREPARED:
662+
break;
663+
656664
}
657665
}
658666

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp