Re: pg_filenode_relation(0,0) elog

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_filenode_relation(0,0) elog
Дата
Msg-id 2146777.1623469895@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_filenode_relation(0,0) elog  (Justin Pryzby <pryzby@telsasoft.com>)
Ответы Re: pg_filenode_relation(0,0) elog  (Justin Pryzby <pryzby@telsasoft.com>)
Список pgsql-hackers
Justin Pryzby <pryzby@telsasoft.com> writes:
> Per sqlsmith.
> postgres=# SELECT pg_filenode_relation(0,0);
> ERROR:  unexpected duplicate for tablespace 0, relfilenode 0

Ugh.

> The usual expectation is that sql callable functions should return null rather
> than hitting elog().

Agreed, but you should put the short-circuit into the SQL-callable
function, ie pg_filenode_relation.  Lower-level callers ought not be
passing junk data.

Likely it should check the reltablespace, too.

            regards, tom lane



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

Предыдущее
От: Justin Pryzby
Дата:
Сообщение: Re: PG 14 release notes, first draft
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: Add client connection check during the execution of the query