pgsql: Provide better message when CREATE EXTENSION can't find a target

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Provide better message when CREATE EXTENSION can't find a target
Дата
Msg-id E1Ujyh8-0002Wz-1x@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Provide better message when CREATE EXTENSION can't find a target schema.

The new message (and SQLSTATE) matches the corresponding error cases in
namespace.c.

This was thought to be a "can't happen" case when extension.c was written,
so we didn't think hard about how to report it.  But it definitely can
happen in 9.2 and later, since we no longer require search_path to contain
any valid schema names.  It's probably also possible in 9.1 if search_path
came from a noninteractive source.  So, back-patch to all releases
containing this code.

Per report from Sean Chittenden, though this isn't exactly his patch.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/530acda4dabe26a4345eccd28a92dd23b1e7a94a

Modified Files
--------------
src/backend/commands/extension.c |   10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Provide better message when CREATE EXTENSION can't find a target
Следующее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: doc: Add IDs to link targets used by phpPgAdmin