Re: problems viewing information_schema.schemata

Поиск
Список
Период
Сортировка
От sqldbxdeveloper
Тема Re: problems viewing information_schema.schemata
Дата
Msg-id 1311817865078-4640939.post@n5.nabble.com
обсуждение исходный текст
Ответ на problems viewing information_schema.schemata  ("Little, Douglas" <DOUGLAS.LITTLE@orbitz.com>)
Список pgsql-general
I did investigate this issue and the problem is pg_has_role function.

Take a look at information_schema.schemata definition below
SELECT (current_database ()) ::information_schema.sql_identifier AS
catalog_name
    , (n.nspname) ::information_schema.sql_identifier AS schema_name
    , (u.rolname) ::information_schema.sql_identifier AS schema_owner
    , (NULL::character VARYING) ::information_schema.sql_identifier AS
default_character_set_catalog
    , (NULL::character VARYING) ::information_schema.sql_identifier AS
default_character_set_schema
    , (NULL::character VARYING) ::information_schema.sql_identifier AS
default_character_set_name
    , (NULL::character VARYING) ::information_schema.character_data AS
sql_path
FROM pg_namespace n
    , pg_authid u
WHERE ((n.nspowner = u.oid) AND pg_has_role (n.nspowner, 'USAGE'::text));


--
View this message in context:
http://postgresql.1045698.n5.nabble.com/problems-viewing-information-schema-schemata-tp4639500p4640939.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

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

Предыдущее
От: Toby Corkindale
Дата:
Сообщение: Re: repmgr problem with registering standby
Следующее
От: David Johnston
Дата:
Сообщение: Re: WITH x AS (...) and visibility in UPDATE