Updated on 2022-06-11 GMT+08:00

PG_OBJECT

PG_OBJECT records the user creation, creation time, last modification time, and last analyzing time of objects of specified types (types existing in object_type).

Table 1 PG_OBJECT columns

Name

Type

Description

object_oid

oid

Object identifier.

object_type

"char"

Object type:

  • r indicates a table, which can be an ordinary table or a temporary table.
  • i indicates an index.
  • s indicates a sequence.
  • v indicates a view.
  • p indicates a stored procedure and function.

creator

oid

ID of the creator.

ctime

timestamp with time zone

Object creation time.

mtime

timestamp with time zone

Time when the object was last modified. By default, the ALTER, COMMENT, GRANT, REVOKE, and TRUNCATE operations are recorded.

If light_object_mtime is configured for behavior_compat_options, the GRANT, REVOKE, and TRUNCATE operations are not recorded.

last_analyze_time

timestamp with time zone

Time when an object is analyzed for the last time.

  • Only normal user operations are recorded. Operations before the object upgrade and during the initdb process cannot be recorded.
  • ctime and mtime are the start time of the transaction.
  • The time of object modification due to capacity expansion is also recorded.