We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27d3496 commit b469747Copy full SHA for b469747
contrib/postgres_fdw/connection.c
@@ -818,13 +818,13 @@ pgfdw_xact_callback(XactEvent event, void *arg)
818
bool res;
819
char *sql;
820
821
- fdwTransState->gid = psprintf("fdw:%lld:%llx:%u:%d:%d:%d",
+ fdwTransState->gid = psprintf("pgfdw:%lld:%llu:%d:%u:%d:%d",
822
(long long) GetCurrentTimestamp(),
823
(long long) GetSystemIdentifier(),
824
- GetCurrentTransactionIdIfAny(),
825
- fdwTransState->nparticipants,
826
MyProcPid,
827
- ++two_phase_xact_count);
+ GetCurrentTransactionIdIfAny(),
+ ++two_phase_xact_count,
+ fdwTransState->nparticipants);
828
829
/* Broadcast PREPARE */
830
sql = psprintf("PREPARE TRANSACTION '%s'", fdwTransState->gid);
0 commit comments