Database views metadata always nullable columns

From: basuraspam - <basuraspam0(at)gmail(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Database views metadata always nullable columns
Date: 2017-06-02 14:11:25
Message-ID: CAAMZiXCo2PdDXBB0b+uCfdNMk+meGa_7J1y_qm5eumFc9zV-5Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi...
Doing some automatic metadata parsing job against postgresql schema I
just find that database views always shown all its column as nullable, it
doesn't matter what are the constraints in the original table columns used
as source to create the view.
I just checked it against infomation_schema and pg_attribute with the same
result.
I'm aware that pg_attributes.attnotnull is updatable reflecting the changes
in information_schema also, but, do you know of some SQL query to extract
this information correctly automatically?
Regards,

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2017-06-02 14:21:30 Re: Database views metadata always nullable columns
Previous Message anand086 2017-06-02 01:35:59 Re: Using bind variable within BEGIN END