Re: Querying a parent table's child schemas

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Querying a parent table's child schemas
Дата
Msg-id 21705.1188503827@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Querying a parent table's child schemas  ("Matthews, James" <jmatthews@Railpower.com>)
Список pgsql-novice
"Matthews, James" <jmatthews@Railpower.com> writes:
> I do the following:

> SELECT a.date, a.log_msg, p.relname
> FROM alarms a, pg_class p
> WHERE a.tableoid = p.oid;

> The relname column just lists alarms for every row.

If they're all named 'alarms', then yeah ... what you need is another
join to pg_namespace using relnamespace.

            regards, tom lane

В списке pgsql-novice по дате отправления:

Предыдущее
От: "Matthews, James"
Дата:
Сообщение: Re: Querying a parent table's child schemas
Следующее
От: Mija Lee
Дата:
Сообщение: Re: Could not remove file messages