Re: metadata and views - Mailing list pgsql-general

From Tom Lane
Subject Re: metadata and views
Date
Msg-id 13375.1014347191@sss.pgh.pa.us
Whole thread Raw
In response to metadata and views  (Rip <rip@onlineinfo.net>)
List pgsql-general
Rip <rip@onlineinfo.net> writes:
> I get correct results on a table for a.attnum, a.attname, t.typname,
> a.attlen, a.atttypmod, a.attnotnull and a.atthasdef, but for a view
> a.attnotnull and a.atthasdef  return nothing.

What were you expecting?  A view doesn't have constraints, nor default
values for columns.

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Createdb problems
Next
From: Bruce Momjian
Date:
Subject: O'Reilly Conference in July needs speakers