Updated on 2024-12-18 GMT+08:00

GS_VIEW_INVALID

GS_VIEW_INVALID queries all unavailable views visible to the current user.

If the basic table, function, or synonym on which the view depends is abnormal, the validtype column of the view is displayed as invalid. If the system object on which the view depends changes during an upgrade, the validtype column of the view is displayed as invalidInUpgrade.

Table 1 GS_VIEW_INVALID columns

Column

Type

Description

oid

oid

OID of the view

schemaname

name

View space name

viewname

name

Name of the view

viewowner

name

Owner of the view

definition

text

Definition of the view

validtype

text

View validity flag

last_invalid_time

timestamp with time zone

Time when a view is invalid. This column is available only in clusters of version 9.1.0.200 or later.