pgsql: Disallow extensions from owning the schema they are assigned to.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Disallow extensions from owning the schema they are assigned to.
Дата
Msg-id E1T1fW3-0001tT-Fx@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Disallow extensions from owning the schema they are assigned to.

This situation creates a dependency loop that confuses pg_dump and probably
other things.  Moreover, since the mental model is that the extension
"contains" schemas it owns, but "is contained in" its extschema (even
though neither is strictly true), having both true at once is confusing for
people too.  So prevent the situation from being set up.

Reported and patched by Thom Brown.  Back-patch to 9.1 where extensions
were added.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/82634a88d1ba2fdc3308d589b0b8f3bfdbd880f1

Modified Files
--------------
src/backend/commands/extension.c |   30 +++++++++++++++++++++++++++---
1 files changed, 27 insertions(+), 3 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: Properly escape usernames in initdb, so names with single-quotes
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Disallow extensions from owning the schema they are assigned to.