Re: pg_partition_tree crashes for a non-defined relation

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pg_partition_tree crashes for a non-defined relation
Дата
Msg-id 20181208065436.GC1989@paquier.xyz
обсуждение исходный текст
Ответ на Re: pg_partition_tree crashes for a non-defined relation  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pg_partition_tree crashes for a non-defined relation  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
On Fri, Dec 07, 2018 at 11:33:32PM -0500, Tom Lane wrote:
> How about cases where the relation OID exists but it's the wrong
> kind of relation?

Such cases already return an error:
=# create sequence popo;
CREATE SEQUENCE
=# select pg_partition_tree('popo');
ERROR:  42809: "popo" is not a table, a foreign table, or an index
LOCATION:  pg_partition_tree, partitionfuncs.c:54

I think that's a sensible choice, because it makes no sense to look for
the inheritors of unsupported relkinds.  Perhaps you have a different
view on the matter?
--
Michael

Вложения

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: make install getting slower
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: proposal: plpgsql pragma statement