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

Commit 2080545

Browse files
committed
Fix recover_xacts with no prepared xacts.
1 parent c75d18c commit 2080545

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pg_shardman--0.0.2.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,9 @@ BEGIN
16171617
END LOOP;
16181618

16191619
-- Collected prepared xacts from all nodes
1620-
SELECT string_to_array(shardman.broadcast(cmds), ',') INTO xacts;
1620+
xacts := string_to_array(shardman.broadcast(cmds), ',');
1621+
-- empty string means no prepared xacts
1622+
xacts := array_remove(xacts, '');
16211623

16221624
FOREACH xact IN ARRAY xacts
16231625
LOOP

0 commit comments

Comments
 (0)