pglogical_ticker
pglogical_ticker : Have an accurate view on pglogical replication delay
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 9510 | pglogical_ticker | pglogical_ticker | 1.4.1 |
ETL | PostgreSQL | C |
| Attribute | Has Binary | Has Library | Need Load | Has DDL | Relocatable | Trusted |
|---|---|---|---|---|---|---|
| --sLd-- | No | Yes | Yes | Yes | no | no |
| Relationships | |
|---|---|
| Schemas | pglogical_ticker |
| Requires | pglogical |
| See Also | pglogical bgw_replstatus pg_failover_slots repmgr pgautofailover spock pgactive mimeo pgpool_adm |
Packages
| Type | Repo | Version | PG Major Compatibility | Package Pattern | Dependencies |
|---|---|---|---|---|---|
| EXT | PGDG | 1.4.1 |
18 17 16 15 14 | pglogical_ticker |
pglogical |
| RPM | PIGSTY | 1.4.1 |
18 17 16 15 14 | pglogical_ticker_$v |
pglogical_$v |
| DEB | PGDG | 1.4.1 |
18 17 16 15 14 | postgresql-$v-pglogical-ticker |
postgresql-$v-pglogical |
| Linux / PG | PG18 | PG17 | PG16 | PG15 | PG14 |
|---|---|---|---|---|---|
| el8.x86_64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| el8.aarch64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| el9.x86_64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| el9.aarch64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| el10.x86_64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| el10.aarch64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| d12.x86_64 | PIGSTY 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 |
| d12.aarch64 | PIGSTY 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 |
| d13.x86_64 | PIGSTY 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 |
| d13.aarch64 | PIGSTY 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 |
| u22.x86_64 | PIGSTY 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 |
| u22.aarch64 | PIGSTY 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 |
| u24.x86_64 | PIGSTY 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 |
| u24.aarch64 | PIGSTY 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 | PGDG 1.4.1 |
| u26.x86_64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
| u26.aarch64 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 | PIGSTY 1.4.1 |
Source
github.com/enova/pglogical_ticker
pglogical_ticker-1.4.1.tar.gz
Install
Make sure PGDG repo available:
Install this extension with pig:
Config this extension to shared_preload_libraries:
Create this extension with:
Usage
pglogical_ticker: Have an accurate view on pglogical replication delay
A background worker that periodically updates ticker tables to measure pglogical replication lag from the provider’s standpoint.
Enabling
Add to postgresql.conf:
Install on both provider and all subscribers:
Deploy Ticker Tables
Run on the provider only (propagated to subscribers via pglogical):
For cascading replication:
Manual Tick
Launching the Ticker
The ticker auto-launches on server start if configured in shared_preload_libraries. Otherwise:
Viewing Replication Delay
On the provider:
On a subscriber:
Configuration
pglogical_ticker.database- Database to run the ticker inpglogical_ticker.naptime- Tick interval in seconds (default 10)pglogical_ticker.restart_time- Seconds before auto-restart (default 10, -1 to disable)