Skip to main content

Tables

The information_schema.tables view contains all tables, views, sinks, and materialized views defined in the current database.
Materialized views are specific to the information schema of RisingWave. They are not included in the information schema of PostgreSQL.
The information_schema.tables view contains the following columns.

Table constraints

The table_constraints view contains all constraints for tables that the current user owns or has privileges other than SELECT on. The table_constraints view contains the following columns.
TEMPORARY LIMITATIONThis view assumes the constraint schema is the same as the table schema, since pg_catalog.pg_constraint only supports primary key.

Schemata

The schemata view contains all accessible schemas in the current database for users, either by way of being the owner or having some privilege. It contains the following columns.

Views

The information_schema.views view contains information about the views in the database. It contains the following columns.
TEMPORARY LIMITATIONUsers with access to information_schema.views can potentially access all views, which poses a security risk. We are working to resolve this limitation. Once the fix is implemented, this message will be removed.

Columns

The information_schema.columns view contains information about columns of all tables, views, and materialized views in the database.

How to use the information schema views?

You can use various information schema views to determine the makeup of tables, sinks, views, and materialized views in a database. For example, you can query for names and types of all the tables, views, and materialized views in the current database:
To query for all of the columns in a table, sink, view, or materialized view called taxi_trip:
To find out tables, sinks, views, and materialized views that contain a column called trip_id: