Re: view without definition in information_schema.Views - Mailing list pgsql-novice

From Hans Ginzel
Subject Re: view without definition in information_schema.Views
Date
Msg-id 6b68e50bbcc4ed9ec7aacf69f53a853b@artax.karlin.mff.cuni.cz
Whole thread Raw
In response to Re: view without definition in information_schema.Views  (amul sul <sul_amul@yahoo.co.in>)
List 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 by date:

Previous
From: amul sul
Date:
Subject: Re: view without definition in information_schema.Views
Next
From: Ricardo Oliveira
Date:
Subject: Help with db scenario