SNAPSHOT_POLICIES view — Deprecated

This Information Schema view provides information on snapshot policies.

Columns

Column nameData typeDescription
SNAPSHOT_POLICY_NAMEVARCHARName of the snapshot policy
SNAPSHOT_POLICY_SCHEMAVARCHARSchema that the snapshot policy belongs to.
SNAPSHOT_POLICY_CATALOGVARCHARDatabase that the snapshot policy belongs to.
SCHEDULEVARCHARSchedule for snapshot creation.
EXPIRE_AFTER_DAYSNUMBERDays after snapshot creation when snapshot should be expired and automatically deleted.
HAS_RETENTION_LOCKVARCHAR

Indicates whether the policy includes a retention lock. Y if the policy has a retention lock; N otherwise.

Retention lock protects snapshots from being deleted by anyone for the defined retention period. The retention lock also prevents the retention period from being decreased on the policy.

OWNERVARCHARName of the role that owns the snapshot policy.
OWNER_ROLE_TYPEVARCHARType of role that owns the snapshot policy. Account role or Database role.
CREATEDTIMESTAMP_LTZDate and time when the snapshot policy was created.
LAST_ALTEREDTIMESTAMP_LTZ

Date and time the object was last altered by a DML, DDL, or background metadata operation. See Usage Notes_.

COMMENTVARCHARComment for the snapshot policy.

Usage notes

  • Latency for the view may be up to 180 minutes (3 hours).
  • The LAST_ALTERED column is updated when the following operations are performed on an object:

    • DDL operations.
    • DML operations (for tables only). This column is updated even when no rows are affected by the DML statement.
    • Background maintenance operations on metadata performed by Snowflake.