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

Поиск
Список
Период
Сортировка
От Frank Church
Тема Re: How to determine the table a query or a views columns come from?
Дата
Msg-id 1141649184.440c2f209c3f5@webmail.adontendev.net
обсуждение исходный текст
Ответ на Re: How to determine the table a query or a views columns come from?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: How to determine the table a query or a views columns
Список pgsql-general
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.

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

> 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 по дате отправления:

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: problem with overloading the "coalesce" function
Следующее
От: DANTE ALEXANDRA
Дата:
Сообщение: Re: Question about the contrib rpm ?