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: (view raw, whole thread or download thread mbox)
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';


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

Kind Regards,


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-2017 The PostgreSQL Global Development Group