Skip to content

Commit

Permalink
wal_status, safe_wal_size, and written_lsn columns added in postgres13 (
Browse files Browse the repository at this point in the history
#23)

* wal_status and safe_wal_size columns added in postgres13

* added written_lsn column and updated config for testing replica
  • Loading branch information
schinns authored Feb 15, 2021
1 parent 233ed7b commit ef2a564
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ type PgReplicationSlot struct {
CatalogXmin string `db:"catalog_xmin"`
RestartLsn string `db:"restart_lsn"`
ConfirmedFlushLsn string `db:"confirmed_flush_lsn"`
WalStatus string `db:"wal_status"`
SafeWalSize null.String `db:"safe_wal_size"`
}

type PgStatWalReceiver struct {
Expand All @@ -48,6 +50,7 @@ type PgStatWalReceiver struct {
ReceivedLsn string `db:"received_lsn"`
ReceivedTli string `db:"received_tli"`
ReceiveStartLsn string `db:"receive_start_lsn"`
WrittenLsn string `db:"written_lsn"`
ReceiveStartTli string `db:"receive_start_tli"`
LastMsgSendTime string `db:"last_msg_send_time"`
LastMsgReceiptTime string `db:"last_msg_receipt_time"`
Expand Down
3 changes: 2 additions & 1 deletion examples/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ database: postgres
user: postgres
sslmode: disable
binary_parameters: yes
port: 9432
port: 7432
max_hop: 3

0 comments on commit ef2a564

Please sign in to comment.