Skip to main content

PostgreSQL catalogs and functions

RisingWave supports these system catalogs, views, and functions of PostgreSQL.

note

RisingWave does not fully support all PostgreSQL system catalog columns.

Catalogs and views

Catalog/View NameDescription
pg_amContains information about relation access methods.
pg_attrdefContains default values for table columns.
pg_attributeContains information about table columns.
pg_castContains information about type casts.
pg_conversionContains information about encoding conversion functions.
pg_classContains information about tables, indexes, sequences, and views.
pg_collationContains information about collations.
pg_databaseContains information about the available databases.
pg_descriptionContains descriptive information about database objects.
pg_enumContains entries showing the values and labels for each enum type.
pg_indexContains part of the information about indexes. The rest is mostly in pg_class.
pg_indexesContains information about each index in the database.
pg_matviewsContains information about about each materialized view in the database.
pg_namespaceContains information about namespaces.
pg_opclassContains information about index access method operator classes.
pg_operatorContains information about operators.
pg_procContains information about functions, aggregate functions, and window functions.
pg_rolesContains information about database roles.
pg_settingsContains information about run-time parameters of the server.
pg_shdescriptionContains descriptive information about shared database objects.
pg_stat_activityContains information about the current activity of server processes.
pg_tablespaceContains information about the available tablespaces.
pg_typeContains information about data types.
pg_userContains information about database users.
pg_viewsContains information about each view in the database.

Functions

FunctionDescription
pg_cancel_backend()Cancels a backend's current query. You can execute this against another backend that has exactly the same role as the user calling the function. In all other cases, you must be a superuser. For more details, see System Administration Functions.
pg_terminate_backend()Terminates a backend. You can execute this against another backend that has exactly the same role as the user calling the function. In all other cases, you must be a superuser. For more details, see System Administration Functions.
pg_backend_pid()Returns the ID of the server process attached to the current session. For more details, see System Information Functions and Operators.
version()Displays the PostgreSQL version and the RisingWave version implemented in the current instance of RisingWave. Output example: PostgreSQL 13.9-RW-0.2.0-alpha.

Help us make this doc better!

Was this page helpful?

Happy React is loading...