Re: Listing Child Tables of a Particular Parent

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Listing Child Tables of a Particular Parent
Дата
Msg-id 2130.1151000884@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Listing Child Tables of a Particular Parent  ("Garcia, Joshua" <Joshua.Garcia@xerox.com>)
Список pgsql-novice
"Garcia, Joshua" <Joshua.Garcia@xerox.com> writes:
> I've been trying to figure out how to get a list of all the child tables
> for a particular parent table.

You'd need to join pg_inherits to pg_class (twice).  See
http://www.postgresql.org/docs/8.1/static/catalogs.html
(adjust link in the obvious way for older PG versions)

            regards, tom lane

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

Предыдущее
От: "Garcia, Joshua"
Дата:
Сообщение: Listing Child Tables of a Particular Parent
Следующее
От:
Дата:
Сообщение: Copy Data Question