-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aa14be7
commit c9a60ad
Showing
7 changed files
with
739 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/backend/distributed/sql/downgrades/citus--12.1-1--12.0-1.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
13 changes: 13 additions & 0 deletions
13
src/backend/distributed/sql/udfs/citus_pause_node_within_txn/12.1-1.sql
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
src/backend/distributed/sql/udfs/citus_pause_node_within_txn/latest.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Oops, something went wrong.