view data types

From: Keith Worthington <KeithW(at)NarrowPathInc(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: view data types
Date: 2005-07-14 02:50:52
Message-ID: 42D5D30C.1030208@NarrowPathInc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi All,

Is there a simple way to determine the data type(s) of columns in a view?

IOW what I would really like to be able to do is

SELECT data_type
FROM magic_table
WHERE view_name = 'my_view'
AND column_name = 'my_column';

data_type
---------
int4

I have been snooping around in the pg tables but I haven't found the
correct one yet.

--
Kind Regards,
Keith

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Michael Fuhr 2005-07-14 04:05:58 Re: view data types
Previous Message Tom Lane 2005-07-13 22:04:36 Re: Help! Not enough swap space?