-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from jfinzel/auto_restart
Auto restart * github.com:enova/pglogical_ticker: Update debian changelog Support auto-launching ticker and add application_name Bump version
- Loading branch information
Showing
13 changed files
with
932 additions
and
38 deletions.
There are no files selected for viewing
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
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
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,3 +1,9 @@ | ||
pglogical-ticker (1.4.0-1) unstable; urgency=medium | ||
|
||
* Support ticker auto-restart | ||
|
||
-- Jeremy Finzel <[email protected]> Thu, 12 Sep 2019 10:21:00 -0500 | ||
|
||
pglogical-ticker (1.3.1-1) unstable; urgency=medium | ||
|
||
* Fix race conditions in tests | ||
|
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
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 @@ | ||
-- Allow running regression suite with upgrade paths | ||
\set v `echo ${FROMVERSION:-1.3}` | ||
\set v `echo ${FROMVERSION:-1.4}` | ||
SET client_min_messages = warning; | ||
CREATE EXTENSION pglogical; | ||
CREATE EXTENSION pglogical_ticker VERSION :'v'; |
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
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,25 @@ | ||
/* pglogical_ticker--1.3--1.4.sql */ | ||
|
||
-- complain if script is sourced in psql, rather than via CREATE EXTENSION | ||
\echo Use "CREATE EXTENSION pglogical_ticker" to load this file. \quit | ||
|
||
CREATE OR REPLACE FUNCTION pglogical_ticker.launch() | ||
RETURNS integer | ||
LANGUAGE sql | ||
STRICT | ||
AS $function$ | ||
SELECT pglogical_ticker._launch(oid) | ||
FROM pg_database | ||
WHERE datname = current_database() | ||
--This should be improved in the future but should do | ||
--the job for now. | ||
AND NOT EXISTS | ||
(SELECT 1 | ||
FROM pg_stat_activity psa | ||
WHERE NOT pid = pg_backend_pid() | ||
AND application_name LIKE 'pglogical_ticker%') | ||
AND NOT pg_is_in_recovery(); | ||
$function$ | ||
; | ||
|
||
|
Oops, something went wrong.