https://github.com/ibarwick/pg_replslot_reader
A largely useless utility to extract the contents of PostgreSQL replication slot files into human-readable form.
https://github.com/ibarwick/pg_replslot_reader
Last synced: 3 months ago
JSON representation
A largely useless utility to extract the contents of PostgreSQL replication slot files into human-readable form.
- Host: GitHub
- URL: https://github.com/ibarwick/pg_replslot_reader
- Owner: ibarwick
- Created: 2016-08-31T13:28:41.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-11-24T01:59:20.000Z (over 4 years ago)
- Last Synced: 2025-03-06T08:57:54.149Z (over 1 year ago)
- Language: C
- Size: 5.86 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
pg_replslot_reader
==================
Utility to display information about replication slots stored in
the PostgreSQL data directory, regardless of whether the server
is running or not.
It is designed to be independent of PostgreSQL version, provided the
version is at least 9.4 (when replication slots were introduced).
Replication slot state is kept as on-disk data, not in the system
catalogue, due to the requirement to make them available on standbys
for cascaded standby setups.
This utility serves little practical purpose.
Installation
------------
Simply:
USE_PGXS=1 make install
which will place the `pg_replslot_reader` binary in the PostgreSQL
directory determined by whatever `pg_config` is found in the path.
Usage
-----
Provide the data directory to examine with `-D/--pgdata`.
Example:
pg_replslot_reader -D ~/devel/postgres/data/head
Checking directory /home/barwick/devel/postgres/data/head...
1 replication slot(s) found
foo
---
Type: physical
Persistency: persistent
Version: 2
Length: 160
Copyright
---------
`pg_replslot_reader` is licensed under the same terms as the PostgreSQL
project itself.