Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2c93841

Browse files
committed
Previous commit fix: warn if we can't resolve xact.
1 parent f6691f2 commit 2c93841

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pg_shardman--0.0.2.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1694,6 +1694,9 @@ BEGIN
16941694
ELSE
16951695
RAISE NOTICE 'Can''t make any decision concerning distributed transaction %', gid;
16961696
END IF;
1697+
ELSE
1698+
RAISE WARNING 'Can''t perform 2PC resolution of xact % at node % with vanilla PostgreSQL',
1699+
gid, xact_node_id;
16971700
END IF;
16981701
END IF;
16991702
ELSE
@@ -1714,7 +1717,8 @@ BEGIN
17141717
finish := format('%s%s:ROLLBACK PREPARED %L;', finish, xact_node_id, gid);
17151718
ELSEIF status IS NULL
17161719
THEN
1717-
RAISE WARNING ''
1720+
RAISE WARNING 'Transaction % at coordinator % is too old to perform 2PC resolution',
1721+
gid, coordinator;
17181722
END IF;
17191723
END IF;
17201724
END LOOP;

0 commit comments

Comments
 (0)