Skip to content

Commit

Permalink
add flushed_lsn column (#24)
Browse files Browse the repository at this point in the history
* add flushed_lsn column

* format
  • Loading branch information
schinns authored Feb 16, 2021
1 parent d206e84 commit 78ae621
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions data_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ 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"`
//pg13 columns
WalStatus string `db:"wal_status"`
SafeWalSize null.String `db:"safe_wal_size"`
}

type PgStatWalReceiver struct {
Expand All @@ -50,14 +51,16 @@ 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"`
LatestEndLsn string `db:"latest_end_lsn"`
LatestEndTime string `db:"latest_end_time"`
SlotName string `db:"slot_name"`
ConnInfo string `db:"conninfo"`
//pg13 columns
WrittenLsn string `db:"written_lsn"`
FlushedLsn string `db:"flushed_lsn"`
}

type PgStatReplication struct {
Expand Down

0 comments on commit 78ae621

Please sign in to comment.