Re: view without definition in information_schema.Views

Поиск
Список
Период
Сортировка
От Hans Ginzel
Тема Re: view without definition in information_schema.Views
Дата
Msg-id 6b68e50bbcc4ed9ec7aacf69f53a853b@artax.karlin.mff.cuni.cz
обсуждение исходный текст
Ответ на Re: view without definition in information_schema.Views  (amul sul <sul_amul@yahoo.co.in>)
Список pgsql-novice
Dne 01.07.2015 14:04, amul sul napsal:

> Its in pg_view catalog.

Thank you. It works.

There is a "feature" in information_schema.Views, that definition is
null if the view is not owned by a currently enabled role. See
http://www.postgresql.org/docs/9.4/static/infoschema-views.html.

HG

> Check more detail in PostgreSQL doc:
> http://www.postgresql.org/docs/9.3/static/view-pg-views.html
> Regards,
> Amul Sul
>
> On Wednesday, 1 July 2015 4:55 PM, Hans Ginzel <hans@matfyz.cz>
> wrote:
>
> Hello!
>
> I realised that there are views in information_schema.Views without
> definition but d+ psql command shows the definition. Where does the
> definition live, please?
>
> SELECT *
> FROM information_schema.Views
> WHERE Table_Schema NOT IN ('pg_catalog', 'information_schema')
> AND View_Definition IS NULL
> LIMIT 10;
>
> Regards
> Hans Ginzel


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

Предыдущее
От: amul sul
Дата:
Сообщение: Re: view without definition in information_schema.Views
Следующее
От: Ricardo Oliveira
Дата:
Сообщение: Help with db scenario