pg_stat_last_operation

The pg_stat_last_operation table contains metadata tracking information about database objects (tables, views, etc.).

Table 1. pg_catalog.pg_stat_last_operation

columntypereferencesdescription
classidoidpg_class.oidOID of the system catalog containing the object.
objidoidany OID columnOID of the object within its system catalog.
staactionnamename The action that was taken on the object.
stasysidoidpg_authid.oidA foreign key to pg_authid.oid.
stausenamename The name of the role that performed the operation on this object.
stasubtypetext The type of object operated on or the subclass of operation performed.
statimetimestamp with timezone The timestamp of the operation. This is the same timestamp that is written to the HAWQ server log files in case you need to look up more detailed information about the operation in the logs.