Updated on 2026-10-21 GMT+08:00

GS_AUDITING_POLICY_PRIVILEGES

GS_AUDITING_POLICY_PRIVILEGES records unified audit information for PRIVILEGES database operations. Each record corresponds to an audit policy. By default, only users with the SYSADMIN or POLADMIN permission can access it. Common users can access it only after being authorized.

Table 1 GS_AUDITING_POLICY_PRIVI columns

Name

Type

Description

oid

OID

Row identifier (implicit attribute, which must be explicitly selected).

privilegetype

Name

Type related to PRIVILEGES, for example, CREATE, ALTER, or DROP.

labelname

Name

Resource label name, corresponding to polname in the GS_AUDITING_POLICY system catalog.

policyoid

OID

OID of the audit policy, corresponding to oid in the GS_AUDITING_POLICY system catalog.

modifydate

Timestamp without time zone

Timestamp of creation or latest modification.