Skip to content

Commit

Permalink
Fixes review issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gurkanindibay committed Aug 17, 2023
1 parent aa14be7 commit c9a60ad
Show file tree
Hide file tree
Showing 7 changed files with 739 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- citus--12.1-1--12.0-1

DROP FUNCTION pg_catalog.citus_pause_node_within_txn(int,bool,int);
-- we have modified the relevant upgrade script to include any_value changes
-- we don't need to upgrade this downgrade path for any_value changes
-- since if we are doing a Citus downgrade, not PG downgrade, then it would be no-op.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
CREATE FUNCTION pg_catalog.citus_pause_node_within_txn(node_id int,
force bool DEFAULT false,
lock_cooldown int DEFAULT 10000)
RETURNS void
LANGUAGE C STRICT
AS 'MODULE_PATHNAME', $$citus_pause_node_within_txn$$;

COMMENT ON FUNCTION pg_catalog.citus_pause_node_within_txn(node_id int,
force bool ,
lock_cooldown int )
IS 'pauses node with given id which leads to add lock in tables and prevent any queries to be executed on that node';

REVOKE ALL ON FUNCTION pg_catalog.citus_pause_node_within_txn(int,bool,int) FROM PUBLIC;
Loading

0 comments on commit c9a60ad

Please sign in to comment.