| Документация по PostgreSQL 9.4.1 | |||
|---|---|---|---|
| Пред. | Уровень выше | Глава 48. Системные каталоги | След. |
48.22. pg_extension
В каталоге pg_extension хранится информация об установленных расширениях. Подробнее о расширениях можно узнать в Разделе 35.15.
Таблица 48-22. Колонки pg_extension
| Имя | Тип | Ссылки | Описание |
|---|---|---|---|
| oid | oid | Идентификатор строки (скрытый атрибут; должен выбираться явно) | |
| extname | name | Имя расширения | |
| extowner | oid | pg_authid.oid | Владелец расширения |
| extnamespace | oid | pg_namespace.oid | Схема, содержащая экспортируемые расширением объекты |
| extrelocatable | bool | True, если расширение можно переместить в другую схему | |
| extversion | text | Имя версии расширения | |
| extconfig | oid[] | pg_class.oid | Массив с идентификаторами regclass, указывающими на таблицы конфигурации расширения, либо NULL, если таких таблиц нет |
| extcondition | text[] | Массив с условиями фильтра WHERE для таблиц конфигурации расширения, либо NULL, если таких условий нет |
Заметьте, что в отличие от большинства каталогов с колонкой "namespace", здесь extnamespace не подразумевает, что расширение принадлежит данной схеме. Имена расширений никогда не дополняются схемой. Вместо этого, extnamespace показывает, что в этой схеме содержатся все или большинство объектов расширения. Если extrelocatable имеет значение true, эта схема должна фактически содержать все относящиеся к схеме объекты, составляющие это расширение.
| Пред. | Начало | След. |
| pg_event_trigger | Уровень выше | pg_foreign_data_wrapper |
| PostgreSQL 9.4.1 Documentation | |||
|---|---|---|---|
| Prev | Up | Chapter 48. System Catalogs | Next |
48.22. pg_extension
The catalog pg_extension stores information about the installed extensions. See Section 35.15 for details about extensions.
Table 48-22. pg_extension Columns
| Name | Type | References | Description |
|---|---|---|---|
| oid | oid | Row identifier (hidden attribute; must be explicitly selected) | |
| extname | name | Name of the extension | |
| extowner | oid | pg_authid.oid | Owner of the extension |
| extnamespace | oid | pg_namespace.oid | Schema containing the extension's exported objects |
| extrelocatable | bool | True if extension can be relocated to another schema | |
| extversion | text | Version name for the extension | |
| extconfig | oid[] | pg_class.oid | Array of regclass OIDs for the extension's configuration table(s), or NULL if none |
| extcondition | text[] | Array of WHERE-clause filter conditions for the extension's configuration table(s), or NULL if none |
Note that unlike most catalogs with a "namespace" column, extnamespace is not meant to imply that the extension belongs to that schema. Extension names are never schema-qualified. Rather, extnamespace indicates the schema that contains most or all of the extension's objects. If extrelocatable is true, then this schema must in fact contain all schema-qualifiable objects belonging to the extension.