Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group