Re: REPOST: 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: Re: REPOST: How to determine the table a query or a views columns come from?
Date: 2006-03-07 10:38:29
Message-ID: 1141727909.440d62a510e4a@webmail.adontendev.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Quoting Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:

Quoting Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:

Can this info be obtained by querying the system tables,
especially in the case of views? I am using 'scripting' languages and using C
will be quite awkward.

> Frank Church <pgsql(at)adontendev(dot)net> writes:
> > Is there way to determine the table a query or a view's columns come from?
>
> Yeah, there's some support for that in the protocol. libpq exposes it
> as PQftable() and PQftablecol().
>
> regards, tom lane
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Guido Neitzer 2006-03-07 10:59:18 Logging seq scans
Previous Message Poul Møller Hansen 2006-03-07 10:13:07 pg_dump error - filesystem full