How to get comments for view columns?

From: eugene(dot)mindrov(at)gmail(dot)com
To: pgsql-general(at)postgresql(dot)org
Subject: How to get comments for view columns?
Date: 2007-05-02 15:56:00
Message-ID: 1178121360.115175.234940@u30g2000hsc.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
is there any way to get comment meta-information for columns in a
view? I mean, suppose I have several tables and some of their columns
have comments, then I define a view on these tables, and what I want
is to somehow retrieve comments (if any) for those columns which are
selected in a view.
I tried to play with system catalog tables trying to dig out the
necessary info, but to no avail.
The best I could do is to retrieve all "dependent" columns (which
belong to underlying tables) for a view with their comments, but I
couldn't find any way to determine a relation between "dependent"
columns and those actually selected in a view.
So, is this an impossible task and should I invent my own meta-
dictionary or I'm missing something important?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2007-05-02 15:59:19 Re: Postgres (selection of thesis topic)
Previous Message Martin Gainty 2007-05-02 15:52:25 Re: Postgres (selection of thesis topic)