How to Examine a view - Mailing list pgsql-general

From info@axier.se
Subject How to Examine a view
Date
Msg-id 1159199073.846537.84750@i42g2000cwa.googlegroups.com
Whole thread Raw
Responses Re: How to Examine a view  (Ray Stell <stellr@cns.vt.edu>)
List pgsql-general
I have setup a view consisting of two tables and some compound fields.
Now I would like from the client perspective see what those compound
fields actually are originally.

Let's (for simplicity I have inlcuded only one table) say we have:
CREATE OR REPLACE VIEW clientview AS
 SELECT c.clientid, (c.orderer_name::text || ' :'::text) ||
substr(c.occasion::text, 1, 10) AS "Order occasion", c.customerid
   FROM client c

Is it possible to query postgres to tell me what field names and field
types "Order occasion" really consists of?


pgsql-general by date:

Previous
From: Filip Rembiałkowski
Date:
Subject: dbi-link questions + patch
Next
From: "Thomas Peter"
Date:
Subject: strange sql issue