Re: Determining a table column by the view column.

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Determining a table column by the view column.
Date: 2012-08-14 19:26:36
Message-ID: 502AA66C.8050408@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 08/14/12 7:18 AM, Dmitriy Igrishin wrote:
> Hey all,
>
> Is there way to determine a table column referenced by
> a view column via SQL?
>
> I want to create an universal function to determine
> mandatoriness of some column of the view (i.e.
> check the not null constraint of underlying table column).

note that a view column can be the result of a function or operation,
perhaps on fields of several columns from several tables being joined in
the view. how would your function cope with something like this?

--
john r pierce N 37, W 122
santa cruz ca mid-left coast

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Edson Richter 2012-08-14 19:42:35 Re: Visualize database schema
Previous Message Scott Mead 2012-08-14 18:47:56 Re: Visualize database schema