Documentation
¶
Index ¶
- type Lock
- type LockJoined
- type Locks
- type StatActivities
- type StatActivity
- type StatActivityJoined
- type StatArchiver
- type StatArchiverJoined
- type StatArchivers
- type StatBGWriter
- type StatBGWriterJoined
- type StatBGWriters
- type StatDatabase
- type StatDatabaseConflict
- type StatDatabaseConflictJoined
- type StatDatabaseConflicts
- type StatDatabaseJoined
- type StatDatabases
- type StatIOIndex
- type StatIOIndexJoined
- type StatIOIndexes
- type StatIOSequence
- type StatIOSequenceJoined
- type StatIOSequences
- type StatIOTable
- type StatIOTableJoined
- type StatIOTables
- type StatIndex
- type StatIndexJoined
- type StatIndexes
- type StatReplication
- type StatReplicationJoined
- type StatReplications
- type StatSSL
- type StatSSLJoined
- type StatSSLs
- type StatTable
- type StatTableJoined
- type StatTables
- type StatUserFunction
- type StatUserFunctionJoined
- type StatUserFunctions
- type StatWALReceiver
- type StatWALReceiverJoined
- type StatWALReceivers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lock ¶
type Lock struct { LockType null.String `json:"locktype"` Database null.Int `json:"database"` Relation null.Int `json:"relation"` Page null.Int `json:"page"` Tuple null.Int `json:"tuple"` VirtualXID null.String `json:"virtualxid"` TransactionID null.Int `json:"transactionid"` ClassID null.Int `json:"classid"` ObjID null.Int `json:"objid"` ObjSubID null.Int `json:"objsubid"` VirtualTransaction null.String `json:"virtualtransaction"` PID null.Int `json:"pid"` Mode null.String `json:"mode"` Granted null.Bool `json:"granted"` FastPath null.Bool `json:"fastpath"` }
Lock represents a row in pg_locks
func (*Lock) RowTraceable ¶
RowTraceable reports whether the lock has all the information to be able to track a specific row in an arbitrary relation.
type LockJoined ¶
type LockJoined struct { Lock Activities StatActivities `json:"activities"` Databases StatDatabases `json:"databases"` Tables StatTables `json:"tables"` Indexes StatIndexes `json:"indexes"` TablesIO StatIOTables `json:"tables_io"` IndexesIO StatIOIndexes `json:"indexes_io"` SequencesIO StatIOSequences `json:"sequences_io"` LockedRow null.String `json:"locked_row"` }
LockJoined is the extended struct of Lock with all the possible joinable fields.
func (*LockJoined) ScanDestinations ¶
func (lj *LockJoined) ScanDestinations(joins []query.Queryable) []interface{}
ScanDestinations returns the destinations for scanning DB rows in struct fields.
type Locks ¶
type Locks []LockJoined
Locks is an alias for a slice of LockJoined.
type StatActivities ¶
type StatActivities []StatActivityJoined
StatActivities is an alias for a slice of StatActivityJoined.
func (*StatActivities) Scan ¶
func (ss *StatActivities) Scan(value interface{}) error
Scan reads the DB value into StatActivities.
type StatActivity ¶
type StatActivity struct { DatID null.Int `json:"datid,omitempty"` DatName null.String `json:"datname,omitempty"` PID null.Int `json:"pid,omitempty"` UseSysID null.Int `json:"usesysid,omitempty"` UseName null.String `json:"usename,omitempty"` ApplicationName null.String `json:"application_name,omitempty"` ClientAddr null.String `json:"client_addr,omitempty"` ClientHostname null.String `json:"client_hostname,omitempty"` ClientPort null.Int `json:"client_port,omitempty"` BackendStart null.Time `json:"backend_start,omitempty"` XactStart null.Time `json:"xact_start,omitempty"` QueryStart null.Time `json:"query_start,omitempty"` StateChange null.Time `json:"state_change,omitempty"` WaitEventType null.String `json:"wait_event_type,omitempty"` WaitEvent null.String `json:"wait_event,omitempty"` State null.String `json:"state,omitempty"` BackendXID null.String `json:"backend_xid,omitempty"` BackendXMin null.String `json:"backend_xmin,omitempty"` Query null.String `json:"query,omitempty"` }
StatActivity represents a row in pg_stat_activity
func (*StatActivity) Selects ¶
func (s *StatActivity) Selects() []string
Selects returns the column names for select query.
type StatActivityJoined ¶
type StatActivityJoined struct { StatActivity Locks Locks `json:"locks,omitempty"` TxLocks Locks `json:"tx_locks,omitempty"` SSLUsages StatSSLs `json:"ssl_usages,omitempty"` WalRecivers StatWALReceivers `json:"wal_receivers,omitempty"` Databases StatDatabases `json:"databases,omitempty"` DatabaseConflicts StatDatabaseConflicts `json:"database_conflicts,omitempty"` BlockedBy pq.Int64Array `json:"blocked_by,omitempty"` }
StatActivityJoined is the extended struct of StatActivity with all the possible joinable fields.
func (*StatActivityJoined) ScanDestinations ¶
func (sj *StatActivityJoined) ScanDestinations(joins []query.Queryable) []interface{}
ScanDestinations returns the destinations for scanning DB rows in struct fields.
type StatArchiver ¶
type StatArchiver struct { ArchivedCount pginternal.BigInt `json:"archived_count"` LastArchivedWAL null.String `json:"last_archived_wal"` LastArchivedTime null.Time `json:"last_archived_time"` FailedCount pginternal.BigInt `json:"failed_count"` LastFailedWAL null.String `json:"last_failed_wal"` LastFailedTime null.Time `json:"last_failed_time"` StatsReset null.Time `json:"stats_reset"` }
StatArchiver represents a row in pg_stat_archiver view
func (*StatArchiver) Selects ¶
func (s *StatArchiver) Selects() []string
Selects returns the column names for select query.
type StatArchiverJoined ¶
type StatArchiverJoined struct {
StatArchiver
}
StatArchiverJoined is the extended struct of StatArchiver with all the possible joinable fields.
func (*StatArchiverJoined) ScanDestinations ¶
func (sj *StatArchiverJoined) ScanDestinations(joins []query.Queryable) []interface{}
ScanDestinations returns the destinations for scanning DB rows in struct fields.
type StatArchivers ¶
type StatArchivers []StatArchiverJoined
StatArchivers is an alias for a slice of StatArchiverJoined.
func (*StatArchivers) Scan ¶
func (ss *StatArchivers) Scan(value interface{}) error
Scan reads the DB value into StatArchivers.
type StatBGWriter ¶
type StatBGWriter struct { CheckpointsTimed pginternal.BigInt `json:"checkpoints_timed"` CheckpointsReq pginternal.BigInt `json:"checkpoints_req"` CheckpointWriteTime null.Float `json:"checkpoint_write_time"` CheckpointSyncTime null.Float `json:"checkpoint_sync_time"` BuffersCheckpoint pginternal.BigInt `json:"buffers_checkpoint"` BuffersClean pginternal.BigInt `json:"buffers_clean"` MaxWrittenClean pginternal.BigInt `json:"maxwritten_clean"` BuffersBackend pginternal.BigInt `json:"buffers_backend"` BuffersBackendFsync pginternal.BigInt `json:"buffers_backend_fsync"` BuffersAlloc pginternal.BigInt `json:"buffers_alloc"` StatsReset null.Time `json:"stats_reset"` }
StatBGWriter represents a row in pg_stat_bgwriter view
func (*StatBGWriter) Selects ¶
func (s *StatBGWriter) Selects() []string
Selects returns the column names for select query.
type StatBGWriterJoined ¶
type StatBGWriterJoined struct {
StatBGWriter
}
StatBGWriterJoined is the extended struct of StatBGWriter with all the possible joinable fields.
func (*StatBGWriterJoined) ScanDestinations ¶
func (sj *StatBGWriterJoined) ScanDestinations(joins []query.Queryable) []interface{}
ScanDestinations returns the destinations for scanning DB rows in struct fields.
type StatBGWriters ¶
type StatBGWriters []StatBGWriterJoined
StatBGWriters is an alias for a slice of StatBGWriterJoined.
func (*StatBGWriters) Scan ¶
func (ss *StatBGWriters) Scan(value interface{}) error
Scan reads the DB value into StatBGWriters.
type StatDatabase ¶
type StatDatabase struct { DatID pginternal.OID `json:"datid,omitempty"` DatName null.String `json:"datname,omitempty"` NumBackends null.Int `json:"numbackends,omitempty"` XactCommit pginternal.BigInt `json:"xact_commit,omitempty"` XactRollback pginternal.BigInt `json:"xact_rollback,omitempty"` BlocksRead pginternal.BigInt `json:"blks_read,omitempty"` BlocksHit pginternal.BigInt `json:"blks_hit,omitempty"` TuplesReturned pginternal.BigInt `json:"tup_returned,omitempty"` TuplesFetched pginternal.BigInt `json:"tup_fetched,omitempty"` TuplesInserted pginternal.BigInt `json:"tup_inserted,omitempty"` TuplesUpdated pginternal.BigInt `json:"tup_updated,omitempty"` TuplesDeleted pginternal.BigInt `json:"tup_deleted,omitempty"` Conflicts pginternal.BigInt `json:"conflicts,omitempty"` TempFiles pginternal.BigInt `json:"temp_files,omitempty"` TempBytes pginternal.BigInt `json:"temp_bytes,omitempty"` Deadlocks pginternal.BigInt `json:"deadlocks,omitempty"` BlockReadTime null.Float `json:"blk_read_time,omitempty"` BlockWriteTime null.Float `json:"blk_write_time,omitempty"` StatsReset null.Time `json:"stats_reset,omitempty"` }
StatDatabase represents a row in pg_stat_database
func (*StatDatabase) Selects ¶
func (s *StatDatabase) Selects() []string
Selects returns the column names for select query.
type StatDatabaseConflict ¶
type StatDatabaseConflict struct { DatID pginternal.OID `json:"datid,omitempty"` DatName null.String `json:"datname,omitempty"` ConflTablespace big.Int `json:"confl_tablespace,omitempty"` ConflLock big.Int `json:"confl_lock,omitempty"` ConflSnapshot big.Int `json:"confl_snapshot,omitempty"` ConflBufferpin big.Int `json:"confl_bufferpin,omitempty"` ConflDeadlock big.Int `json:"confl_deadlock,omitempty"` }
StatDatabaseConflict represents a row in pg_stat_database_conflicts
func (*StatDatabaseConflict) Selects ¶
func (s *StatDatabaseConflict) Selects() []string
Selects returns the column names for select query.
type StatDatabaseConflictJoined ¶
type StatDatabaseConflictJoined struct {
StatDatabaseConflict
}
StatDatabaseConflictJoined is the extended struct of StatDatabaseConflict with all the possible joinable fields.
func (*StatDatabaseConflictJoined) ScanDestinations ¶
func (sj *StatDatabaseConflictJoined) ScanDestinations(joins []query.Queryable) []interface{}
ScanDestinations returns the destinations for scanning DB rows in struct fields.
type StatDatabaseConflicts ¶
type StatDatabaseConflicts []StatDatabaseConflictJoined
StatDatabaseConflicts is an alias for a slice of StatDatabaseConflictJoined.
func (*StatDatabaseConflicts) Scan ¶
func (ss *StatDatabaseConflicts) Scan(value interface{}) error
Scan reads the DB value into StatDatabaseConflicts.
type StatDatabaseJoined ¶
type StatDatabaseJoined struct { StatDatabase Conflicts StatDatabaseConflicts `json:"conflicts"` Locks Locks `json:"locks"` Activities StatActivities `json:"activities"` }
StatDatabaseJoined is the extended struct of StatDatabase with all the possible joinable fields.
func (*StatDatabaseJoined) ScanDestinations ¶
func (sj *StatDatabaseJoined) ScanDestinations(joins []query.Queryable) []interface{}
ScanDestinations returns the destinations for scanning DB rows in struct fields.
type StatDatabases ¶
type StatDatabases []StatDatabaseJoined
StatDatabases is an alias for a slice of StatDatabaseJoined.
func (*StatDatabases) Scan ¶
func (ss *StatDatabases) Scan(value interface{}) error
Scan reads the DB value into StatDatabases.
type StatIOIndex ¶
type StatIOIndex struct { RelID pginternal.OID `json:"relid"` IndexRelID pginternal.OID `json:"indexrelid"` SchemaName null.String `json:"schemaname"` RelName null.String `json:"relname"` IndexRelName null.String `json:"indexrelname"` IndexBlocksRead pginternal.BigInt `json:"idx_blks_read"` IndexBlocksHit pginternal.BigInt `json:"idx_blks_hit"` }
StatIOIndex represents a row in pg_statio_{all,sys,user}_indexes
func (*StatIOIndex) Selects ¶
func (s *StatIOIndex) Selects() []string
Selects returns the column names for select query.
type StatIOIndexJoined ¶
type StatIOIndexJoined struct {
StatIOIndex
}
StatIOIndexJoined is the extended struct of StatIOIndex with all the possible joinable fields.
func (*StatIOIndexJoined) ScanDestinations ¶
func (sj *StatIOIndexJoined) ScanDestinations(joins []query.Queryable) []interface{}
ScanDestinations returns the destinations for scanning DB rows in struct fields.
type StatIOIndexes ¶
type StatIOIndexes []StatIOIndexJoined
StatIOIndexes is an alias for a slice of StatIOIndexJoined.
func (*StatIOIndexes) Scan ¶
func (ss *StatIOIndexes) Scan(value interface{}) error
Scan reads the DB value into StatIOIndexes.
type StatIOSequence ¶
type StatIOSequence struct { RelID pginternal.OID `json:"relid"` SchemaName null.String `json:"schemaname"` RelName null.String `json:"relname"` BlocksRead pginternal.BigInt `json:"blks_read"` BlocksHit pginternal.BigInt `json:"blks_hit"` }
StatIOSequence represents a row in pg_statio_{all,sys,user}_sequences
func (*StatIOSequence) Selects ¶
func (s *StatIOSequence) Selects() []string
type StatIOSequenceJoined ¶
type StatIOSequenceJoined struct {
StatIOSequence
}
StatIOSequenceJoined is the extended struct of StatIOSequence with all the possible joinable fields.
func (*StatIOSequenceJoined) ScanDestinations ¶
func (sj *StatIOSequenceJoined) ScanDestinations(joins []query.Queryable) []interface{}
ScanDestinations returns the destinations for scanning DB rows in struct fields.
type StatIOSequences ¶
type StatIOSequences []StatIOSequenceJoined
StatIOSequences is an alias for a slice of StatIOSequenceJoined.
func (*StatIOSequences) Scan ¶
func (ss *StatIOSequences) Scan(value interface{}) error
Scan reads the DB value into StatIOSequences.
type StatIOTable ¶
type StatIOTable struct { RelID pginternal.OID `json:"relid"` SchemaName null.String `json:"schemaname"` RelName null.String `json:"relname"` HeapBlocksRead pginternal.BigInt `json:"heap_blks_read"` HeapBlocksHit pginternal.BigInt `json:"heap_blks_hit"` IndexBlocksRead pginternal.BigInt `json:"idx_blks_read"` IndexBlocksHit pginternal.BigInt `json:"idx_blks_hit"` ToastBlocksRead pginternal.BigInt `json:"toast_blks_read"` ToastBlocksHit pginternal.BigInt `json:"toast_blks_hit"` ToastIndexBlocksRead pginternal.BigInt `json:"tidx_blks_read"` ToastIndexBlocksHit pginternal.BigInt `json:"tidx_blks_hit"` }
StatIOTable represents a row in pg_statio_{all,sys,user}_tables
func (*StatIOTable) Selects ¶
func (s *StatIOTable) Selects() []string
Selects returns the column names for select query.
type StatIOTableJoined ¶
type StatIOTableJoined struct {
StatIOTable
}
StatIOTableJoined is the extended struct of StatIOTable with all the possible joinable fields.
func (*StatIOTableJoined) ScanDestinations ¶
func (sj *StatIOTableJoined) ScanDestinations(joins []query.Queryable) []interface{}
ScanDestinations returns the destinations for scanning DB rows in struct fields.
type StatIOTables ¶
type StatIOTables []StatIOTableJoined
StatIOTables is an alias for a slice of StatIOTableJoined.
func (*StatIOTables) Scan ¶
func (ss *StatIOTables) Scan(value interface{}) error
Scan reads the DB value into StatIOTables.
type StatIndex ¶
type StatIndex struct { RelID pginternal.OID `json:"relid"` IndexRelID pginternal.OID `json:"indexrelid"` SchemaName null.String `json:"schemaname"` RelName null.String `json:"relname"` IndexRelName null.String `json:"indexrelname"` IndexScan pginternal.BigInt `json:"idx_scan"` IndexTuplesRead pginternal.BigInt `json:"idx_tup_read"` IndexTuplesFetched pginternal.BigInt `json:"idx_tup_fetch"` }
StatIndex represents a row in pg_stat_{all,sys,user}_indexes
type StatIndexJoined ¶
type StatIndexJoined struct { StatIndex Tables StatTables `json:"tables"` TablesIO StatIOTables `json:"tables_io"` Locks Locks `json:"locks"` IndexesIO StatIOIndexes `json:"indexes_io"` }
StatIndexJoined is the extended struct of StatIndex with all the possible joinable fields.
func (*StatIndexJoined) ScanDestinations ¶
func (sj *StatIndexJoined) ScanDestinations(joins []query.Queryable) []interface{}
ScanDestinations returns the destinations for scanning DB rows in struct fields.
type StatIndexes ¶
type StatIndexes []StatIndexJoined
StatIndexes is an alias for a slice of StatIndexJoined.
func (*StatIndexes) Scan ¶
func (ss *StatIndexes) Scan(value interface{}) error
Scan reads the DB value into StatIndexes.
type StatReplication ¶
type StatReplication struct { PID null.Int `json:"pid,omitempty"` UseSysID null.Int `json:"usesysid,omitempty"` UseName null.String `json:"usename,omitempty"` ApplicationName null.String `json:"application_name,omitempty"` ClientAddr null.String `json:"client_addr,omitempty"` ClientHostname null.String `json:"client_hostname,omitempty"` ClientPort null.Int `json:"client_port,omitempty"` BackendStart null.Time `json:"backend_start,omitempty"` BackendXMin null.String `json:"backend_xmin,omitempty"` State null.String `json:"state,omitempty"` SentLSN pginternal.LSN `json:"sent_location,omitempty"` WriteLSN pginternal.LSN `json:"write_location,omitempty"` FlushLSN pginternal.LSN `json:"flush_location,omitempty"` ReplayLSN pginternal.LSN `json:"replay_location,omitempty"` SyncPriority null.Int `json:"sync_priority,omitempty"` SyncState null.String `json:"sync_state,omitempty"` }
StatReplication represents a row in pg_stat_replication
func (*StatReplication) Selects ¶
func (s *StatReplication) Selects() []string
Selects returns the column names for select query.
type StatReplicationJoined ¶
type StatReplicationJoined struct { StatReplication Locks Locks `json:"locks,omitempty"` SSLUsages StatSSLs `json:"ssl_usages,omitempty"` WalRecivers StatWALReceivers `json:"wal_receivers,omitempty"` }
StatReplicationJoined is the extended struct of StatReplication with all the possible joinable fields.
func (*StatReplicationJoined) ScanDestinations ¶
func (sj *StatReplicationJoined) ScanDestinations(joins []query.Queryable) []interface{}
ScanDestinations returns the destinations for scanning DB rows in struct fields.
type StatReplications ¶
type StatReplications []StatReplicationJoined
StatReplications is an alias for a slice of StatReplicationJoined.
func (*StatReplications) Scan ¶
func (ss *StatReplications) Scan(value interface{}) error
Scan reads the DB value into StatReplications.
type StatSSL ¶
type StatSSL struct { PID null.Int `json:"pid"` SSL null.Bool `json:"ssl"` Version null.String `json:"version"` Cipher null.String `json:"cipher"` Bits null.Int `json:"bits"` Compression null.Bool `json:"compression"` ClientDN null.String `json:"clientdn"` }
StatSSL represents a row in pg_stat_ssl view
type StatSSLJoined ¶
type StatSSLJoined struct { StatSSL Locks Locks `json:"locks"` Activities StatActivities `json:"activities"` }
StatSSLJoined is the extended struct of StatSSL with all the possible joinable fields.
func (*StatSSLJoined) ScanDestinations ¶
func (sj *StatSSLJoined) ScanDestinations(joins []query.Queryable) []interface{}
ScanDestinations returns the destinations for scanning DB rows in struct fields.
type StatSSLs ¶
type StatSSLs []StatSSLJoined
StatSSLs is an alias for a slice of StatSSLJoined.
type StatTable ¶
type StatTable struct { RelID null.Int `json:"relid"` SchemaName null.String `json:"schemaname"` RelName null.String `json:"relname"` NumSequentialScans null.Int `json:"seq_scan"` NumSequentialRowsRead null.Int `json:"seq_tup_read"` NumIndexScans null.Int `json:"idx_scan"` NumIndexRowsFetched null.Int `json:"idx_tup_fetch"` NumRowsInserted null.Int `json:"n_tup_ins"` NumRowsUpdated null.Int `json:"n_tup_upd"` NumRowsDeleted null.Int `json:"n_tup_del"` NumRowsHotUpdated null.Int `json:"n_tup_hot_upd"` NumEstimatedLiveRows null.Int `json:"n_live_tup"` NumEstimatedDeadRows null.Int `json:"n_dead_tup"` NumRowsModifiedSinceAnalyze null.Int `json:"n_mod_since_analyze"` NumManuallyVacuumed null.Int `json:"vacuum_count"` LastManuallyVacuumedAt null.Time `json:"last_vacuum"` NumAutoVacuumed null.Int `json:"autovacuum_count"` LastAutoVacuumedAt null.Time `json:"last_autovacuum"` NumManuallyAnalyzed null.Int `json:"analyze_count"` LastManuallyAnalyzedAt null.Time `json:"last_analyze"` NumAutoAnalyzed null.Int `json:"autoanalyze_count"` LastAutoAnalyzedAt null.Time `json:"last_autoanalyze"` }
StatTable represents a row in pg_stat_{all,sys,user}_tables
type StatTableJoined ¶
type StatTableJoined struct { StatTable Locks Locks `json:"locks"` Indexes StatIndexes `json:"indexes"` IndexIOStats StatIndexes `json:"index_iostats"` SequenceIOStats StatIOSequences `json:"sequence_iostats"` TableIOStats StatIOTables `json:"table_iostats"` }
StatTableJoined is the extended struct of StatTable with all the possible joinable fields.
func (*StatTableJoined) ScanDestinations ¶
func (sj *StatTableJoined) ScanDestinations(joins []query.Queryable) []interface{}
ScanDestinations returns the destinations for scanning DB rows in struct fields.
type StatTables ¶
type StatTables []StatTableJoined
StatTables is an alias for a slice of StatTableJoined.
func (*StatTables) Scan ¶
func (ss *StatTables) Scan(value interface{}) error
Scan reads the DB value into StatTables.
type StatUserFunction ¶
type StatUserFunction struct { FuncID pginternal.OID `json:"funcid"` SchemaName null.String `json:"schemaname"` FuncName null.String `json:"funcname"` Calls pginternal.BigInt `json:"calls"` TotalTime null.Float `json:"total_time"` SelfTime null.Float `json:"self_time"` }
StatUserFunction represents a row in pg_stat_user_functions view
func (*StatUserFunction) Selects ¶
func (s *StatUserFunction) Selects() []string
Selects returns the column names for select query.
type StatUserFunctionJoined ¶
type StatUserFunctionJoined struct {
StatUserFunction
}
StatUserFunctionJoined is the extended struct of StatUserFunction with all the possible joinable fields.
func (*StatUserFunctionJoined) ScanDestinations ¶
func (sj *StatUserFunctionJoined) ScanDestinations(joins []query.Queryable) []interface{}
ScanDestinations returns the destinations for scanning DB rows in struct fields.
type StatUserFunctions ¶
type StatUserFunctions []StatUserFunctionJoined
StatUserFunctions is an alias for a slice of StatUserFunctionJoined.
func (*StatUserFunctions) Scan ¶
func (ss *StatUserFunctions) Scan(value interface{}) error
Scan reads the DB value into StatUserFunctions.
type StatWALReceiver ¶
type StatWALReceiver struct { PID null.Int `json:"pid"` Status null.String `json:"status"` ReceiveStartLSN pginternal.LSN `json:"receive_start_lsn"` ReceiveStartTLI null.Int `json:"receive_start_tli"` ReceivedLSN pginternal.LSN `json:"received_lsn,omitempty"` ReceivedTLI null.Int `json:"received_tli"` LastMsgSendTime null.Time `json:"last_msg_send_time"` LastMsgReceiptTime null.Time `json:"last_msg_receipt_time"` LatestEndLSN pginternal.LSN `json:"latest_end_lsn"` LatestEndTime null.Time `json:"latest_end_time"` SlotName null.String `json:"slot_name"` ConnInfo null.String `json:"conninfo"` }
StatWALReceiver represents a row in pg_stat_wal_receiver
func (*StatWALReceiver) Selects ¶
func (s *StatWALReceiver) Selects() []string
Selects returns the column names for select query.
type StatWALReceiverJoined ¶
type StatWALReceiverJoined struct { StatWALReceiver Locks Locks `json:"locks"` Activities StatActivities `json:"activities"` }
StatWALReceiverJoined is the extended struct of StatWALReceiver with all the possible joinable fields.
func (*StatWALReceiverJoined) ScanDestinations ¶
func (sj *StatWALReceiverJoined) ScanDestinations(joins []query.Queryable) []interface{}
ScanDestinations returns the destinations for scanning DB rows in struct fields.
type StatWALReceivers ¶
type StatWALReceivers []StatWALReceiverJoined
StatWALReceivers is an alias for a slice of StatWALReceiverJoined.
func (*StatWALReceivers) Scan ¶
func (ss *StatWALReceivers) Scan(value interface{}) error
Scan reads the DB value into StatWALReceivers.