diff --git a/src/backend/distributed/clock/causal_clock.c b/src/backend/distributed/clock/causal_clock.c index 9f069a78a..eb3de9353 100644 --- a/src/backend/distributed/clock/causal_clock.c +++ b/src/backend/distributed/clock/causal_clock.c @@ -415,8 +415,6 @@ PrepareAndSetTransactionClock(void) return NULL; } - RequireTransactionBlock(true, "citus_get_transaction_clock"); - dlist_iter iter; List *transactionNodeList = NIL; List *nodeList = NIL; diff --git a/src/test/regress/expected/clock.out b/src/test/regress/expected/clock.out index 7c833d6e6..5ae4fcc45 100644 --- a/src/test/regress/expected/clock.out +++ b/src/test/regress/expected/clock.out @@ -259,9 +259,6 @@ SELECT ABS(:epoch - cluster_clock_logical(:'latest_clock')) < 25; t (1 row) --- This should fail as there is no explicit transaction -SELECT citus_get_transaction_clock(); -ERROR: citus_get_transaction_clock can only be used in transaction blocks BEGIN; SELECT citus_get_transaction_clock(); citus_get_transaction_clock diff --git a/src/test/regress/sql/clock.sql b/src/test/regress/sql/clock.sql index 711f5bac7..7d9d996c9 100644 --- a/src/test/regress/sql/clock.sql +++ b/src/test/regress/sql/clock.sql @@ -101,9 +101,6 @@ SELECT (extract(epoch from now()) * 1000)::bigint AS epoch, -- Returns true SELECT ABS(:epoch - cluster_clock_logical(:'latest_clock')) < 25; --- This should fail as there is no explicit transaction -SELECT citus_get_transaction_clock(); - BEGIN; SELECT citus_get_transaction_clock(); END;