Skip to content

Commit 28efdaa

Browse files
committed
Revisit gid format again to fix shardman's deadlock detector.
1 parent 9df61e3 commit 28efdaa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

contrib/postgres_fdw/connection.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -818,13 +818,13 @@ pgfdw_xact_callback(XactEvent event, void *arg)
818818
bool res;
819819
char *sql;
820820

821-
fdwTransState->gid = psprintf("fdw:%lld:%llx:%u:%d:%d:%d",
821+
fdwTransState->gid = psprintf("pgfdw:%lld:%llu:%d:%u:%d:%d",
822822
(long long) GetCurrentTimestamp(),
823823
(long long) GetSystemIdentifier(),
824-
GetCurrentTransactionIdIfAny(),
825-
fdwTransState->nparticipants,
826824
MyProcPid,
827-
++two_phase_xact_count);
825+
GetCurrentTransactionIdIfAny(),
826+
++two_phase_xact_count,
827+
fdwTransState->nparticipants);
828828

829829
/* Broadcast PREPARE */
830830
sql = psprintf("PREPARE TRANSACTION '%s'", fdwTransState->gid);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy