Re: BUG #18866: Running pg_freespace() on views triggers an Abort
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #18866: Running pg_freespace() on views triggers an Abort |
| Дата | |
| Msg-id | 2052347.1743091273@sss.pgh.pa.us обсуждение |
| Ответ на | Re: BUG #18866: Running pg_freespace() on views triggers an Abort (Richard Guo <guofenglinux@gmail.com>) |
| Ответы |
Re: BUG #18866: Running pg_freespace() on views triggers an Abort
|
| Список | pgsql-bugs |
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.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера