How to determine the table a query or a views columns come from?

From: Frank Church <pgsql(at)adontendev(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: How to determine the table a query or a views columns come from?
Date: 2006-03-03 23:21:53
Message-ID: 1141428113.4408cf91ae29b@webmail.adontendev.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Is there way to determine the table a query or a view's columns come from?

I am looking for something like that in postgresql. If it doesn't exist is there
some generalized SQL that can parse the query or view's definition and retrieve
the list.

something like

column name | actual column name | source table | actual source table

column name is either the original name or an alias for it, and so is source
table.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-03-03 23:53:13 Re: How to determine the table a query or a views columns come from?
Previous Message Javier Velez Perez 2006-03-03 23:06:18