Re: how to get the source table & field name of a view field

From: Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: Prime Ho <ho(at)optimasoft(dot)com(dot)tw>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: how to get the source table & field name of a view field
Date: 2002-11-07 14:25:36
Message-ID: Pine.LNX.4.44.0211071625140.7264-100000@matrix.gatewaynet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Thu, 7 Nov 2002, Prime Ho wrote:

> Hi,
>
> Could you tell me how to get view field's source table and field name?
> another word, how could I know the view field come from?

SELECT definition from pg_views where viewname='<your view name>';

>
> Regards,
> Ho
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>

==================================================================
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel: +30-10-8981112
fax: +30-10-8981877
email: achill(at)matrix(dot)gatewaynet(dot)com
mantzios(at)softlab(dot)ece(dot)ntua(dot)gr

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Achilleus Mantzios 2002-11-07 14:28:48 Re: primary keys
Previous Message Christoph Haller 2002-11-07 14:06:53 Re: how to get the source table & field name of a view field