37.65. view_table_usage
Представление view_table_usage
описывает все таблицы, задействованные в выражении запроса представления (операторе SELECT
, определяющем представление). В этом представлении показываются только таблицы, принадлежащие текущей активной роли.
Примечание
Системные таблицы в этом представлении не отображаются. Это может быть исправлено позже.
Таблица 37.63. Столбцы view_table_usage
Тип столбца Описание |
---|
Имя базы данных, содержащей представление (всегда текущая база) |
Имя схемы, содержащей представление |
Имя представления |
Имя базы данных, содержащей таблицу, задействованную в представлении (всегда текущая база) |
Имя схемы, содержащей таблицу, задействованную в представлении |
Имя таблицы, задействованной в представлении |
36.3. User-Defined Functions
Postgres Pro provides four kinds of functions:
query language functions (functions written in SQL) (Section 36.5)
procedural language functions (functions written in, for example, PL/pgSQL or PL/Tcl) (Section 36.8)
internal functions (Section 36.9)
C-language functions (Section 36.10)
Every kind of function can take base types, composite types, or combinations of these as arguments (parameters). In addition, every kind of function can return a base type or a composite type. Functions can also be defined to return sets of base or composite values.
Many kinds of functions can take or return certain pseudo-types (such as polymorphic types), but the available facilities vary. Consult the description of each kind of function for more details.
It's easiest to define SQL functions, so we'll start by discussing those. Most of the concepts presented for SQL functions will carry over to the other types of functions.
Throughout this chapter, it can be useful to look at the reference page of the CREATE FUNCTION command to understand the examples better.