select ... inherits?

Поиск
Список
Период
Сортировка
От Chris Travers
Тема select ... inherits?
Дата
Msg-id CAKt_ZfvCLnHiAYwZzAZYwjyzbOP5D1mBjuOT1diEu05Mts43bg@mail.gmail.com
обсуждение исходный текст
Ответы Re: select ... inherits?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I came across a query someone posted in the form of:

SELECT * 
FROM [table_list]
INHERITS ([table_list]);

Naturally, never having seen this before I consulted the docs and there was nothing there that I could find.  So I ran some tests and the syntax seems supported.

It seems according to my tests that this does something rather unexpected, in that it overrides the default column names returned with whatever is in the inherits list, but only when you have a from clause.  

Is this a bug, a feature, or undefined behavior?
--
Best Wishes,
Chris Travers

Efficito:  Hosted Accounting and ERP.  Robust and Flexible.  No vendor lock-in.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: TCP_KEEPIDLE Question
Следующее
От: Torsten Förtsch
Дата:
Сообщение: Partitioned table question