Re: 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: How to determine the table a query or a views columns come from?
Date: 2006-03-06 12:46:24
Message-ID: 1141649184.440c2f209c3f5@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>:

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.

I have got to find if libpq's output is exposed in PHP or Ruby.

> 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 DANTE ALEXANDRA 2006-03-06 13:17:16 Re: Question about the contrib rpm ?
Previous Message Richard Huxton 2006-03-06 11:29:56 Re: problem with overloading the "coalesce" function