Re: REPOST: How to determine the table a query or a views columns come from? - Mailing list pgsql-general

From Frank Church
Subject Re: REPOST: How to determine the table a query or a views columns come from?
Date
Msg-id 1141727909.440d62a510e4a@webmail.adontendev.net
Whole thread Raw
In response to Re: How to determine the table a query or a views columns come from?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: REPOST: How to determine the table a query or a views columns come from?  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
Quoting Tom Lane <tgl@sss.pgh.pa.us>:

Quoting Tom Lane <tgl@sss.pgh.pa.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@adontendev.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
>




pgsql-general by date:

Previous
From: Poul Møller Hansen
Date:
Subject: pg_dump error - filesystem full
Next
From: Guido Neitzer
Date:
Subject: Logging seq scans