Re: pg_partition_tree crashes for a non-defined relation

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pg_partition_tree crashes for a non-defined relation
Дата
Msg-id 20181207230540.GA12740@paquier.xyz
обсуждение исходный текст
Ответ на pg_partition_tree crashes for a non-defined relation  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: pg_partition_tree crashes for a non-defined relation  (Amit Langote <amitlangote09@gmail.com>)
Re: pg_partition_tree crashes for a non-defined relation  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, Dec 07, 2018 at 10:04:06AM +0900, Michael Paquier wrote:
> While testing another patch, I have bumped into the issue of
> $subject...  I should have put some more negative testing from the start
> on this stuff, here is a culprit query when passing directly an OID:
> select pg_partition_tree(0);
>
> I think that we should make the function return NULL if the relation
> defined does not exist, as we usually do for system-facing functions.
> It is also easier for the caller to know that the relation does not
> exist instead of having a plpgsql try/catch wrapper or such.
>
> Thoughts?

Are there any objections about fixing this issue?  I would rather fix it
sonner than later.
--
Michael

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: slow queries over information schema.tables
Следующее
От: John Naylor
Дата:
Сообщение: Re: Thinking about EXPLAIN ALTER TABLE