pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Hoover <revoohc@gmail.com>
To: Robert Treat <xzilla@users.sourceforge.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Where are aliases stored?
Date: Thu, 12 Apr 2007 10:46:25 -0400
Message-ID: <1d219a6f0704120746ld395edfk624f5f5d2cd5e0cd@mail.gmail.com> (raw)
In-Reply-To: <200704112104.55584.xzilla@users.sourceforge.net>
References: <1d219a6f0704111314v5fb773fdoc6bccb67b5289e31@mail.gmail.com>
	<200704112104.55584.xzilla@users.sourceforge.net>

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@users.sourceforge.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
>

view thread (4+ messages)  latest in thread

Message-ID: <1d219a6f0704120746ld395edfk624f5f5d2cd5e0cd@mail.gmail.com>
Permalink:  ../1d219a6f0704120746ld395edfk624f5f5d2cd5e0cd@mail.gmail.com/
Also on:    postgresql.org/message-id/1d219a6f0704120746ld395edfk624f5f5d2cd5e0cd@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: revoohc@gmail.com, xzilla@users.sourceforge.net
  Subject: Re: Where are aliases stored?
  In-Reply-To: <1d219a6f0704120746ld395edfk624f5f5d2cd5e0cd@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox