|
|
transaction-start
(LocalTransactionId)
- Probe that fires at the start of a new transaction. arg0 is the transaction id.
+ Probe that fires at the start of a new transaction.
+ arg0 is the transaction id.
|
transaction-commit
(LocalTransactionId)
- Probe that fires when a transaction completes successfully. arg0 is the transaction id.
+ Probe that fires when a transaction completes successfully.
+ arg0 is the transaction id.
|
transaction-abort
(LocalTransactionId)
- Probes that fires when a transaction does not complete successfully. arg0 is the transaction id.
+ Probe that fires when a transaction completes unsuccessfully.
+ arg0 is the transaction id.
|
query-start
(const char *)
- Probe that fires when the execution of a statement is started. arg0 is the query string.
+ Probe that fires when the processing of a query is started.
+ arg0 is the query string.
|
query-done
(const char *)
- Probe that fires when the execution of a statement is complete. arg0 is the query string.
+ Probe that fires when the processing of a query is complete.
+ arg0 is the query string.
|
query-parse-start
(const char *)
- Probe that fires when the parsing of a query is started. arg0 is the query string.
+ Probe that fires when the parsing of a query is started.
+ arg0 is the query string.
|
query-parse-done
(const char *)
- Probe that fires when the parsing of a query is complete. arg0 is the query string.
+ Probe that fires when the parsing of a query is complete.
+ arg0 is the query string.
|
query-rewrite-start
(const char *)
- Probe that fires when the rewriting of a query is started. arg0 is the query string.
+ Probe that fires when the rewriting of a query is started.
+ arg0 is the query string.
|
query-rewrite-done
(const char *)
- Probe that fires when the rewriting of a query is complete. arg0 is the query string.
+ Probe that fires when the rewriting of a query is complete.
+ arg0 is the query string.
|
query-plan-start
|
statement-status
(const char *)
- Probe that fires anytime an SQL statement is executed on the server. arg0 is the query string.
+ Probe that fires anytime the server process updates its
+ pg_stat_activity>.current_query> status.
+ arg0 is the new status string.
|
checkpoint-start
(int)
- Probe that fires when a checkpoint is performed. arg0 holds the bitwise flags used to distinguish different checkpoints such as shutdown, immediate or force.
+ Probe that fires when a checkpoint is started.
+ arg0 holds the bitwise flags used to distinguish different checkpoint
+ types, such as shutdown, immediate or force.
|
checkpoint-done
(int, int, int, int, int)
- Probe that fires when a checkpoint is complete. arg0 is the number of buffers written. arg1 is the total number of buffers. arg2, arg3 and arg4 contain the number of xlog file(s) added, removed and recycled respectively.
+ Probe that fires when a checkpoint is complete.
+ (The probes listed next fire in sequence during checkpoint processing.)
+ arg0 is the number of buffers written. arg1 is the total number of
+ buffers. arg2, arg3 and arg4 contain the number of xlog file(s) added,
+ removed and recycled respectively.
|
clog-checkpoint-start
(bool)
- Probe that fires when the CLOG portion of the checkpoint is started. arg0 is either true or false, true for normal checkpoint, false for postmaster shutdown.
+ Probe that fires when the CLOG portion of a checkpoint is started.
+ arg0 is true for normal checkpoint, false for shutdown
+ checkpoint.
|
clog-checkpoint-done
(bool)
- Probe that fires when the CLOG portion of the checkpoint is complete. arg0 has the same meaning as clog-checkpoint-start.
+ Probe that fires when the CLOG portion of a checkpoint is
+ complete. arg0 has the same meaning as for clog-checkpoint-start.
|
subtrans-checkpoint-start
(bool)
- Probe that fires when the SUBTRANS portion of the checkpoint is started. arg0 is either true or false, true for normal checkpoint, false for postmaster shutdown.
+ Probe that fires when the SUBTRANS portion of a checkpoint is
+ started.
+ arg0 is true for normal checkpoint, false for shutdown
+ checkpoint.
|
subtrans-checkpoint-done
(bool)
- Probe that fires when the SUBTRANS portion of the checkpoint is complete. arg0 has the same meaning as subtrans-checkpoint-done.
+ Probe that fires when the SUBTRANS portion of a checkpoint is
+ complete. arg0 has the same meaning as for
+ subtrans-checkpoint-start.
|
multixact-checkpoint-start
(bool)
- Probe that fires when the MultiXact portion of the checkpoint is started. arg0 is either true or false, true for normal checkpoint, false for postmaster shutdown.
+ Probe that fires when the MultiXact portion of a checkpoint is
+ started.
+ arg0 is true for normal checkpoint, false for shutdown
+ checkpoint.
|
multixact-checkpoint-done
(bool)
- Probe that fires when the MultiXact portion of the checkpoint is complete. arg0 has the same meaning as multixact-checkpoint-start.
+ Probe that fires when the MultiXact portion of a checkpoint is
+ complete. arg0 has the same meaning as for
+ multixact-checkpoint-start.
|
buffer-checkpoint-start
(int)
- Probe that fires when the shared buffers portion of the checkpoint is started to flush out the buffers, and it's always followed by buffer-sync-start. arg0 holds the bitwise flags used to distinguish different checkpoints such as shutdown, immediate or force
+ Probe that fires when the buffer-writing portion of a checkpoint
+ is started.
+ arg0 holds the bitwise flags used to distinguish different checkpoint
+ types, such as shutdown, immediate or force.
+
+ |
+ buffer-sync-start
+ (int, int)
+ Probe that fires when we begin to write dirty buffers during
+ checkpoint (after identifying which buffers must be written).
+ arg0 is the total number of buffers.
+ arg1 is the number that are currently dirty and need to be written.
+
+ |
+ buffer-sync-written
+ (int)
+ Probe that fires after each buffer is written during checkpoint.
+ arg0 is the ID number of the buffer.
+
+ |
+ buffer-sync-done
+ (int, int, int)
+ Probe that fires when all dirty buffers have been written.
+ arg0 is the total number of buffers.
+ arg1 is the number of buffers actually written by the checkpoint process.
+ arg2 is the number that were expected to be written (arg1 of
+ buffer-sync-start); any difference reflects other processes flushing
+ buffers during the checkpoint.
|
buffer-checkpoint-sync-start
()
- Probe that fires to fsync buffers to disk, and it's always preceeded by buffer-checkpoint-start, buffer-sync-start, and buffer-flush-start. The time difference between buffer-checkpoint-start and buffer-checkpoint-sync-start is the write time, and the difference between buffer-checkpoint-sync-start and buffer-checkpoint-done is the sync time.
+ Probe that fires after dirty buffers have been written to the
+ kernel, and before starting to issue fsync requests.
|
buffer-checkpoint-done
()
- Probe that fires when the shared buffers portion of the checkpoint is complete. This probe is fired after buffer-checkpoint-sync-start.
+ Probe that fires when syncing of buffers to disk is
+ complete.
|
twophase-checkpoint-start
()
- Probe that fires when the two-phase portion of the checkpoint is started.
+ Probe that fires when the two-phase portion of a checkpoint is
+ started.
|
twophase-checkpoint-done
()
- Probe that fires when the two-phase portion of the checkpoint is complete.
-
- |
- buffer-hit
- (bool)
- Probe that fires when a read request is satisfied from the buffer cache. arg0 is either true or false, true for local buffer, false for shared buffer.
-
- |
- buffer-miss
- (bool)
- Probe that fires when a read request requires disk access. arg0 is either true or false, true for local buffer, false for shared buffer .
+ Probe that fires when the two-phase portion of a checkpoint is
+ complete.
|
buffer-read-start
- (ForkNumber, BlockNumber, Oid, Oid, Oid, bool)
- Probe that fires when a buffer read is started. arg0 and arg1 contain the fork and block numbers. arg2, arg3, and arg4 contain the tablespace, database, and relation OIDs respectively. arg5 is either true or false, true for local buffer, false for shared buffer.
-
- |
- buffer-read-done
(ForkNumber, BlockNumber, Oid, Oid, Oid, bool, bool)
- Probe that fires when a buffer read is complete. arg0 and arg1 contain the fork and block numbers. arg2, arg3, and arg4 contain the tablespace, database, and relation OIDs respectively. arg5 is either true or false, true for local buffer, false for shared buffer. arg6 is true if buffer is found in the pool, false otherwise.
-
- |
- buffer-sync-start
- (int, int)
- Probe that fires to write out all dirty buffers in the pool at checkpoint time, and it's always preceeded by buffer-checkpoint-start and followed by buffer-flush-start. arg0 is the total number of buffers. arg1 is the number it intends to write.
-
- |
- buffer-sync-done
- (int, int, int)
- Probe that fires when all dirty buffers have been written. arg0 is the total number of buffers. arg1 is the number actually written. arg2 is the total number to write.
+ Probe that fires when a buffer read is started.
+ arg0 and arg1 contain the fork and block numbers of the page (but
+ arg1 will be -1 if this is a relation extension request).
+ arg2, arg3, and arg4 contain the tablespace, database, and relation OIDs
+ identifying the relation.
+ arg5 is true for a local buffer, false for a shared buffer.
+ arg6 is true for a relation extension request, false for normal
+ read.
|
- buffer-sync-written
- (int)
- Probe that fires when the buffer pool syncing is in progress (e.g. buffer-sync-start has fired) and a buffer has been successfully written.
+ buffer-read-done
+ (ForkNumber, BlockNumber, Oid, Oid, Oid, bool, bool, bool)
+ Probe that fires when a buffer read is complete.
+ arg0 and arg1 contain the fork and block numbers of the page (if this
+ is a relation extension request, arg1 now contains the block number
+ of the newly added block).
+ arg2, arg3, and arg4 contain the tablespace, database, and relation OIDs
+ identifying the relation.
+ arg5 is true for a local buffer, false for a shared buffer.
+ arg6 is true for a relation extension request, false for normal
+ read.
+ arg7 is true if the buffer was found in the pool, false if not.
|
buffer-flush-start
- (Oid, Oid, Oid)
- Probe that fires when a shared buffer needs to be physically written out to disk, and it's always preceeded by buffer-sync-start. This actually just passes the buffer contents to the kernel; the real write to disk happens later by the kernel. This is okay since the changes have already been written to the WAL. arg0, arg1, and arg2 contain the tablespace, database, and relation OIDs respectively.
+ (ForkNumber, BlockNumber, Oid, Oid, Oid)
+ Probe that fires before issuing any write request for a shared
+ buffer.
+ arg0 and arg1 contain the fork and block numbers of the page.
+ arg2, arg3, and arg4 contain the tablespace, database, and relation OIDs
+ identifying the relation.
|
buffer-flush-done
- (Oid, Oid, Oid)
- Probe that fires when the buffer flush is complete, and it's always followed by buffer-checkpoint-sync-start. arg0, arg1, and arg2 have the same meaning as buffer-flush-start.
+ (ForkNumber, BlockNumber, Oid, Oid, Oid)
+ Probe that fires when a write request is complete. (Note
+ that this just reflects the time to pass the data to the kernel;
+ it's typically not actually been written to disk yet.)
+ The arguments are the same as for buffer-flush-start.
|
buffer-write-dirty-start
(ForkNumber, BlockNumber, Oid, Oid, Oid)
- Probe that fires when the server starts writting out dirty buffers, indicating that the bgwriter is ineffective or shared_buffers is too small. arg0 refers to a fork in a relation. arg1 is the disk block number. arg2, arg3, arg4 contain the tablespace, database, and relation OIDs respectively.
+ Probe that fires when a server process begins to write a dirty
+ buffer. (If this happens often, it implies that
+ is too
+ small or the bgwriter control parameters need adjustment.)
+ arg0 and arg1 contain the fork and block numbers of the page.
+ arg2, arg3, and arg4 contain the tablespace, database, and relation OIDs
+ identifying the relation.
|
buffer-write-dirty-done
(ForkNumber, BlockNumber, Oid, Oid, Oid)
- Probe that fires when the buffer write is complete. The arguments are the same as buffer-write-dirty-start probe.
+ Probe that fires when a dirty-buffer write is complete.
+ The arguments are the same as for buffer-write-dirty-start.
|
wal-buffer-write-dirty-start
()
- Probe that fires when the server starts writting out dirty WAL buffers, indicating that no more WAL buffer pages are available. Increasing wal_buffers will reduce the writes and may improve performance.
+ Probe that fires when when a server process begins to write a
+ dirty WAL buffer because no more WAL buffer space is available.
+ (If this happens often, it implies that
+ is too small.)
|
wal-buffer-write-dirty-done
()
- Probe that fires when the WAL buffer write is complete.
+ Probe that fires when a dirty WAL buffer write is complete.
|
xlog-insert
(unsigned char, unsigned char)
- Probe that fires when data is inserted in the XLog. arg0 is the resource manager (rmid) for the record. arg1 represents the info flags.
+ Probe that fires when a WAL record is inserted.
+ arg0 is the resource manager (rmid) for the record.
+ arg1 contains the info flags.
|
xlog-switch
()
- Probe that fires when an XLog switch is requested. This is always immediately preceeded by an firing of the xlog-insert probe.
-
- |
- sort-start
- (int, bool, int, int, bool)
- Probe that fires when sort is performed. arg0 indicates heap, index or datum sort. arg1 is true for unique enforcement. arg2 is the number of keys. arg3 represents workMem. arg3 is true for random access.
-
- |
- sort-done
- (unsigned long, long)
- Probe that fires when sort is complete. arg0 is either true or false, true for external sort, false for internal sort. arg1 is the number of disk blocks used for external sort or memory used in KB for internal sort.
+ Probe that fires when a WAL segment switch is requested.
|
smgr-md-read-start
(ForkNumber, BlockNumber, Oid, Oid, Oid)
- Probes that fires when reading a block from a relation. arg0 and arg1 contain fork and block number. arg2, arg3 and arg4 contain the tablespace, database and relation OIDs.
+ Probe that fires when beginning to read a block from a relation.
+ arg0 and arg1 contain the fork and block numbers of the page.
+ arg2, arg3, and arg4 contain the tablespace, database, and relation OIDs
+ identifying the relation.
|
smgr-md-read-done
- (ForkNumber, BlockNumber, Oid, Oid, Oid, const char *, int, int)
- Probes that fires when a block read is complete. arg0 and arg1 contan fork and block number. arg2, arg3, arg4 contain the tablespace, database, and relation OIDs. arg5 is the path to the relation's file. arg6 is the number of bytes read. arg7 is the block size.
+ (ForkNumber, BlockNumber, Oid, Oid, Oid, int, int)
+ Probe that fires when a block read is complete.
+ arg0 and arg1 contain the fork and block numbers of the page.
+ arg2, arg3, and arg4 contain the tablespace, database, and relation OIDs
+ identifying the relation.
+ arg5 is the number of bytes actually read, while arg6 is the number
+ requested (if these are different it indicates trouble).
|
smgr-md-write-start
(ForkNumber, BlockNumber, Oid, Oid, Oid)
- Probes that fires when writing a block to the appropriate relation. arg0 and arg1 contain fork and block number. arg2, arg3 and arg4 contain the tablespace, database and relation OIDs.
+ Probe that fires when beginning to write a block to a relation.
+ arg0 and arg1 contain the fork and block numbers of the page.
+ arg2, arg3, and arg4 contain the tablespace, database, and relation OIDs
+ identifying the relation.
|
smgr-md-write-done
- (ForkNumber, BlockNumber, Oid, Oid, Oid, const char *, int, int)
- Probes that fires when a block write is complete. arg0 and arg1 contan fork and block number. arg2, arg3, arg4 contain the tablespace, database, and relation OIDs. arg5 is the path to the relation's file. arg6 is number of bytes read. arg7 is the block size.
+ (ForkNumber, BlockNumber, Oid, Oid, Oid, int, int)
+ Probe that fires when a block write is complete.
+ arg0 and arg1 contain the fork and block numbers of the page.
+ arg2, arg3, and arg4 contain the tablespace, database, and relation OIDs
+ identifying the relation.
+ arg5 is the number of bytes actually written, while arg6 is the number
+ requested (if these are different it indicates trouble).
|
- deadlock-found
- ()
- Probe that fires when a deadlock is found by the deadlock detector.
+ sort-start
+ (int, bool, int, int, bool)
+ Probe that fires when a sort operation is started.
+ arg0 indicates heap, index or datum sort.
+ arg1 is true for unique-value enforcement.
+ arg2 is the number of key columns.
+ arg3 is the number of kilobytes of work memory allowed.
+ arg4 is true if random access to the sort result is required.
-
-
-
-
-