| От | Tom Lane |
|---|---|
| Тема | Re: Querying a parent table's child schemas |
| Дата | |
| Msg-id | 1982.1188489674@sss.pgh.pa.us обсуждение |
| Ответ на | Querying a parent table's child schemas ("Matthews, James" <jmatthews@Railpower.com>) |
| Ответы |
Re: Querying a parent table's child schemas
|
| Список | pgsql-novice |
"Matthews, James" <jmatthews@Railpower.com> writes:
> I was wondering if there was a way to SELECT from a parent table
> and display the schema associated with a child table's data.
It's not entirely clear to me which meaning of "schema" you have in
mind, but perhaps the tableoid system column would help you? That
lets you determine which child table the row really came from,
and then you can join to the system catalogs to get whatever data
you are actually after.
regards, tom lane
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера