Re: Where are aliases stored?

From: "Chris Hoover" <revoohc(at)gmail(dot)com>
To: "Robert Treat" <xzilla(at)users(dot)sourceforge(dot)net>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Where are aliases stored?
Date: 2007-04-12 14:46:25
Message-ID: 1d219a6f0704120746ld395edfk624f5f5d2cd5e0cd@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thanks, but this does not meet my needs.

Is there not a way to query the pg_ catalog views and get a listing of views
with columns (by alias name)?

i.e.

create view asdf as
select xyz as test1 from bogus_table;

I need a query that says:
view|column|alias
asdf|xyz|test1

Thanks,

Chris

On 4/11/07, Robert Treat <xzilla(at)users(dot)sourceforge(dot)net> wrote:
>
> On Wednesday 11 April 2007 16:14, Chris Hoover wrote:
> > I'm trying to pull a listing of views with the columns and column
> aliases.
> > However, I must be blind, and can't find what system view has the alias
> for
> > the columns of the view. Would someone please enlighten me.
> >
>
> See pg_catalog.pg_views.definition.
>
> --
> Robert Treat
> Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Peter Eisentraut 2007-04-12 15:35:15 Re: Where are aliases stored?
Previous Message Tom Lane 2007-04-12 14:01:05 Re: Increasing the shared memory