Help Center > > Developer Guide> System Catalogs and System Views> System Views> PLAN_TABLE

PLAN_TABLE

Updated at: Mar 13, 2020 GMT+08:00

PLAN_TABLE displays the plan information collected by EXPLAIN PLAN. Plan information is in a session-level life cycle. After the session exits, the data will be deleted. Data is isolated between sessions and between users.

Table 1 PLAN_TABLE columns

Name

Type

Description

statement_id

varchar2(30)

Query tag specified by a user

plan_id

bigint

ID of a plan to be queried

id

int

ID of each operator in a generated plan

operation

varchar2(30)

Operation description of an operator in a plan

options

varchar2(255)

Operation parameters

object_name

name

Name of an operated object. It is defined by users, not the object alias used in the query.

object_type

varchar2(30)

Object type

object_owner

name

User-defined schema to which an object belongs

projection

varchar2(4000)

Returned column information

  • A valid object_type value consists of a relkind type defined in PG_CLASS (TABLE ordinary table, INDEX, SEQUENCE, VIEW, FOREIGN TABLE, COMPOSITE TYPE, or TOASTVALUE TOAST table) and the rtekind type used in the plan (SUBQUERY, JOIN, FUNCTION, VALUES, CTE, or REMOTE_QUERY).
  • For RangeTableEntry (RTE), object_owner is the object description used in the plan. Non-user-defined objects do not have object_owner.
  • Information in the statement_id, object_name, object_owner, and projection columns is stored in letter cases specified by users and information in other columns is stored in uppercase.
  • PLAN_TABLE supports only SELECT and DELETE and does not support other DML operations.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel