pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jan Andersen <jma@agile.dk>
To: pgsql-sql@postgresql.org
Subject: Re: Related tables to a view
Date: Tue, 26 Dec 2006 11:54:14 +0100
Message-ID: <20061226105414.C3E7930C94@agile.dk> (raw)
In-Reply-To: <20061226041029.GA61490@winnie.fuhr.org>

> You could query pg_depend to find out which tables and columns the 
> view's rewrite rule depends on but that's not as specific as what 
> you're requesting.  I'm not aware of a way to associate a particular 
> table column with a particular view column short of parsing the view 
> definition or rule action; doing so would have to allow for the 
> possibility of a view column deriving its value from an arbitrarily 
> complex expression involving multiple tables, subqueries, etc.

Yes I'm aware of the "problem" about arbitrary or scalar values but this is
not a problem in this specific case. If a field or value do not have a table
reference then it is not needed in the resultset. I only need those values
which have a direct connection to a table.

Is the only possible way then to analyse the description field in pg_view?

I was hoping for a more simple way to get the needed result.

Regards

Jan Andersen




view thread (6+ messages)  latest in thread

Message-ID: <20061226105414.C3E7930C94@agile.dk>
Permalink:  ../20061226105414.C3E7930C94@agile.dk/
Also on:    postgresql.org/message-id/20061226105414.C3E7930C94@agile.dk

 · 

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-sql@postgresql.org
  Cc: jma@agile.dk
  Subject: Re: Related tables to a view
  In-Reply-To: <20061226105414.C3E7930C94@agile.dk>

* 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