mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-20 18:45:55 +00:00
Make tx() function against a read-only postgres instance.
This commit is contained in:
@@ -792,11 +792,7 @@ CREATE OR REPLACE FUNCTION tx (
|
|||||||
_in_trans_id bytea
|
_in_trans_id bytea
|
||||||
) RETURNS jsonb AS $$
|
) RETURNS jsonb AS $$
|
||||||
DECLARE
|
DECLARE
|
||||||
_min_ledger bigint := min_ledger();
|
_min_seq bigint := min_ledger();
|
||||||
_min_seq bigint := (SELECT ledger_seq
|
|
||||||
FROM ledgers
|
|
||||||
WHERE ledger_seq = _min_ledger
|
|
||||||
FOR SHARE);
|
|
||||||
_max_seq bigint := max_ledger();
|
_max_seq bigint := max_ledger();
|
||||||
_ledger_seq bigint;
|
_ledger_seq bigint;
|
||||||
_nodestore_hash bytea;
|
_nodestore_hash bytea;
|
||||||
|
|||||||
Reference in New Issue
Block a user