Re: BUG #18866: Running pg_freespace() on views triggers an Abort

Поиск
Список
Период
Сортировка
От Tender Wang
Тема Re: BUG #18866: Running pg_freespace() on views triggers an Abort
Дата
Msg-id CAHewXNn9G3aj735=JUP+gf_AJioppaa-9PrLiGRsHCre9GggmA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #18866: Running pg_freespace() on views triggers an Abort  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs


Tom Lane <tgl@sss.pgh.pa.us> 于2025年3月28日周五 00:01写道:
Richard Guo <guofenglinux@gmail.com> writes:
> Not related to this issue but I wonder why blkno is verified after
> the relation is opened.  It can be verified beforehand, no?

It makes sense to me to check the parameters left-to-right, so
I think verifying blkno after relation is fine.  It's not like
there's value in optimizing the failure case.

This does, however, suggest that we ought to check the relkind
immediately after opening the rel, before the blkno check.
I'll adjust the patch that way and push.

Thanks for pushing. 


--
Thanks,
Tender Wang

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