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 StatGSSAPI
- type StatGSSAPIJoined
- type StatGSSAPIs
- 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 StatSLRU
- type StatSLRUJoined
- type StatSLRUs
- type StatSSL
- type StatSSLJoined
- type StatSSLs
- type StatSubscription
- type StatSubscriptionJoined
- type StatSubscriptions
- 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 ¶
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"` LeaderPID null.Int `json:"leader_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"` BackendType null.String `json:"backend_type,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"` GSSAPIUsages StatGSSAPIs `json:"gssapi_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"` ChecksumFailures pginternal.BigInt `json:"checksum_failures,omitempty"` ChecksumLastFailure null.Time `json:"checksum_last_failure,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 Conflicts StatDatabaseConflicts `json:"conflicts"` Locks Locks `json:"locks"` Activities StatActivities `json:"activities"` }
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 StatGSSAPI ¶
type StatGSSAPI struct { PID null.Int `json:"pid,omitempty"` GSSAuthenticated null.Bool `json:"gss_authenticated,omitempty"` Principal null.String `json:"principal,omitempty"` Encrypted null.Bool `json:"encrypted,omitempty"` }
StatGSSAPI represents a row in pg_stat_gssapi
func (*StatGSSAPI) Selects ¶
func (s *StatGSSAPI) Selects() []string
Selects returns the column names for select query.
type StatGSSAPIJoined ¶
type StatGSSAPIJoined struct { StatGSSAPI Locks Locks `json:"locks"` Activities StatActivities `json:"activities"` }
StatGSSAPIJoined is the extended struct of StatGSSAPI with all the possible joinable fields.
func (*StatGSSAPIJoined) ScanDestinations ¶
func (sj *StatGSSAPIJoined) ScanDestinations(joins []query.Queryable) []interface{}
ScanDestinations returns the destinations for scanning DB rows in struct fields.
type StatGSSAPIs ¶
type StatGSSAPIs []StatGSSAPIJoined
StatGSSAPIs is an alias for a slice of StatGSSAPIJoined.
func (*StatGSSAPIs) Scan ¶
func (ss *StatGSSAPIs) Scan(value interface{}) error
Scan reads the DB value into StatGSSAPIs.
type StatIOIndex ¶
type StatIOIndex struct { RelID pginternal.OID `json:"relid,omitempty"` IndexRelID pginternal.OID `json:"indexrelid,omitempty"` SchemaName null.String `json:"schemaname,omitempty"` RelName null.String `json:"relname,omitempty"` IndexRelName null.String `json:"indexrelname,omitempty"` IndexBlocksRead pginternal.BigInt `json:"idx_blks_read,omitempty"` IndexBlocksHit pginternal.BigInt `json:"idx_blks_hit,omitempty"` }
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,omitempty"` SchemaName null.String `json:"schemaname,omitempty"` RelName null.String `json:"relname,omitempty"` BlocksRead pginternal.BigInt `json:"blks_read,omitempty"` BlocksHit pginternal.BigInt `json:"blks_hit,omitempty"` }
StatIOSequence represents a row in pg_statio_{all,sys,user}_sequences
func (*StatIOSequence) Selects ¶
func (s *StatIOSequence) Selects() []string
Selects returns the column names for select query.
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,omitempty"` SchemaName null.String `json:"schemaname,omitempty"` RelName null.String `json:"relname,omitempty"` HeapBlocksRead pginternal.BigInt `json:"heap_blks_read,omitempty"` HeapBlocksHit pginternal.BigInt `json:"heap_blks_hit,omitempty"` IndexBlocksRead pginternal.BigInt `json:"idx_blks_read,omitempty"` IndexBlocksHit pginternal.BigInt `json:"idx_blks_hit,omitempty"` ToastBlocksRead pginternal.BigInt `json:"toast_blks_read,omitempty"` ToastBlocksHit pginternal.BigInt `json:"toast_blks_hit,omitempty"` ToastIndexBlocksRead pginternal.BigInt `json:"tidx_blks_read,omitempty"` ToastIndexBlocksHit pginternal.BigInt `json:"tidx_blks_hit,omitempty"` }
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,omitempty"` IndexRelID pginternal.OID `json:"indexrelid,omitempty"` SchemaName null.String `json:"schemaname,omitempty"` RelName null.String `json:"relname,omitempty"` IndexRelName null.String `json:"indexrelname,omitempty"` IndexScan pginternal.BigInt `json:"idx_scan,omitempty"` IndexTuplesRead pginternal.BigInt `json:"idx_tup_read,omitempty"` IndexTuplesFetched pginternal.BigInt `json:"idx_tup_fetch,omitempty"` }
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_lsn,omitempty"` WriteLSN pginternal.LSN `json:"write_lsn,omitempty"` FlushLSN pginternal.LSN `json:"flush_lsn,omitempty"` ReplayLSN pginternal.LSN `json:"replay_lsn,omitempty"` WriteLag pqinterval.Interval `json:"write_lag,omitempty"` FlushLag pqinterval.Interval `json:"flush_lag,omitempty"` ReplayLag pqinterval.Interval `json:"replay_lag,omitempty"` SyncPriority null.Int `json:"sync_priority,omitempty"` SyncState null.String `json:"sync_state,omitempty"` ReplayTime null.Time `json:"replay_time,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"` GSSAPIUsages StatGSSAPIs `json:"gssapi_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 StatSLRU ¶
type StatSLRU struct { Name null.String `json:"name"` BlocksZeroed pginternal.BigInt `json:"blks_zeroed"` BlocksHit pginternal.BigInt `json:"blks_hit"` BlocksRead pginternal.BigInt `json:"blks_read"` BlocksWritten pginternal.BigInt `json:"blks_written"` BlocksExists pginternal.BigInt `json:"blks_exists"` Flushes pginternal.BigInt `json:"flushes"` Truncates pginternal.BigInt `json:"truncates"` StatsReset pginternal.BigInt `json:"stats_reset"` }
StatSLRU represents a row in pg_stat_slru view
type StatSLRUJoined ¶
type StatSLRUJoined struct {
StatSLRU
}
StatSLRUJoined is the extended struct of StatSLRU with all the possible joinable fields.
func (*StatSLRUJoined) ScanDestinations ¶
func (sj *StatSLRUJoined) ScanDestinations(joins []query.Queryable) []interface{}
ScanDestinations returns the destinations for scanning DB rows in struct fields.
type StatSLRUs ¶
type StatSLRUs []StatSLRUJoined
StatSLRUs is an alias for a slice of StatSLRUJoined.
type StatSSL ¶
type StatSSL struct { PID null.Int `json:"pid,omitempty"` SSL null.Bool `json:"ssl,omitempty"` Version null.String `json:"version,omitempty"` Cipher null.String `json:"cipher,omitempty"` Bits null.Int `json:"bits,omitempty"` Compression null.Bool `json:"compression,omitempty"` ClientDN null.String `json:"client_dn,omitempty"` ClientSerial null.Float `json:"client_serial,omitempty"` IssuerDN null.String `json:"issuer_dn,omitempty"` }
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 StatSubscription ¶
type StatSubscription struct { SubID null.Int `json:"subid,omitempty"` SubName null.String `json:"subname,omitempty"` PID null.Int `json:"pid,omitempty"` RelID null.Int `json:"relid,omitempty"` ReceivedLSN pginternal.LSN `json:"received_lsn,omitempty"` LastMsgSendTime null.Time `json:"last_msg_send_time,omitempty"` LastMsgReceiptTime null.Time `json:"last_msg_receipt_time,omitempty"` LatestEndLSN pginternal.LSN `json:"latest_end_lsn,omitempty"` LatestEndTime null.Time `json:"latest_end_time,omitempty"` }
StatSubscription represents a row in pg_stat_subscription
func (*StatSubscription) Selects ¶
func (s *StatSubscription) Selects() []string
Selects returns the column names for select query.
type StatSubscriptionJoined ¶
type StatSubscriptionJoined struct { StatSubscription Locks Locks `json:"locks"` Activities StatActivities `json:"activities"` }
StatSubscriptionJoined is the extended struct of StatSubscription with all the possible joinable fields.
func (*StatSubscriptionJoined) ScanDestinations ¶
func (sj *StatSubscriptionJoined) ScanDestinations(joins []query.Queryable) []interface{}
ScanDestinations returns the destinations for scanning DB rows in struct fields.
type StatSubscriptions ¶
type StatSubscriptions []StatSubscriptionJoined
StatSubscriptions is an alias for a slice of StatSubscriptionJoined.
func (*StatSubscriptions) Scan ¶
func (ss *StatSubscriptions) Scan(value interface{}) error
Scan reads the DB value into StatSubscriptions.
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"` NumInsertsSinceVacuum null.Int `json:"n_ins_since_vacuum"` 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"` Subscriptions StatSubscriptions `json:"subscriptions"` 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,omitempty"` Status null.String `json:"status,omitempty"` ReceiveStartLSN pginternal.LSN `json:"receive_start_lsn,omitempty"` ReceiveStartTLI null.Int `json:"receive_start_tli,omitempty"` WrittenLSN pginternal.LSN `json:"written_lsn,omitempty"` FlushedLSN pginternal.LSN `json:"flushed_lsn,omitempty"` ReceivedTLI null.Int `json:"received_tli,omitempty"` LastMsgSendTime null.Time `json:"last_msg_send_time,omitempty"` LastMsgReceiptTime null.Time `json:"last_msg_receipt_time,omitempty"` LatestEndLSN pginternal.LSN `json:"latest_end_lsn,omitempty"` LatestEndTime null.Time `json:"latest_end_time,omitempty"` SlotName null.String `json:"slot_name,omitempty"` SenderHost null.String `json:"sender_host,omitempty"` SenderPort null.Int `json:"sender_port,omitempty"` ConnInfo null.String `json:"conninfo,omitempty"` }
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.
Source Files
¶
- lock.go
- stat_activity.go
- stat_archiver.go
- stat_bgwriter.go
- stat_database.go
- stat_database_conflicts.go
- stat_gssapi.go
- stat_index.go
- stat_replication.go
- stat_slru.go
- stat_ssl.go
- stat_subscription.go
- stat_table.go
- stat_user_function.go
- stat_wal_receiver.go
- statio_index.go
- statio_sequence.go
- statio_table.go