Re: is_nullable column of information_schema.columns table

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: mdemir4527(at)gmail(dot)com, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: is_nullable column of information_schema.columns table
Date: 2020-01-07 10:41:29
Message-ID: 13f52b5d04f64804096bca4f2467caacdc199137.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Sat, 2019-12-28 at 20:19 +0000, PG Doc comments form wrote:
> Page: https://www.postgresql.org/docs/12/infoschema-columns.html
> Description:
>
> is_nullable column of information_schema.columns table does not show correct
> values for columns of views. For tables that column shows correct values
> whether a column is nullable or not. I think the documentation should
> include this information although better solution is to correct that error.

All columns of a view are defined as nullable, whether they can assume
that value or not. PostgreSQL does not attempt to deduce the nullability
of columns from the view definition.

So the information in information_schema.columns is correct.
Remember that nullability does not imply that there are actually NULL values.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Laurenz Albe 2020-01-07 10:46:31 Re: Documentation: 21.5. Default Roles
Previous Message Laurenz Albe 2020-01-07 10:29:49 Re: glossary