Re: Accessing an invalid pointer in BufferManagerRelation structure

Поиск
Список
Период
Сортировка
От Stepan Neretin
Тема Re: Accessing an invalid pointer in BufferManagerRelation structure
Дата
Msg-id CA+Yyo5QfPSmPTssXoFWhaDAfLkqe8apMZEBXPqWBbc2fihrc+Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Accessing an invalid pointer in BufferManagerRelation structure  (Daniil Davydov <3danissimo@gmail.com>)
Ответы Re: Accessing an invalid pointer in BufferManagerRelation structure
Список pgsql-hackers
Hello,

Dmitriy Bondar and I decided to review this patch as part of the CommitFest Review.  

The first thing we both noticed is that the macro calls a function that won't be available without an additional header. This seems a bit inconvenient.  

I also have a question: is the logic correct that if the relation is valid, we should fetch it rather than the other way around? Additionally, is checking only the `rd_isvalid` flag sufficient, or should we also consider the flag below?  

```
bool rd_isvalid; /* relcache entry is valid */
```  

Other than that, the tests pass, and there are no issues with code style. Thanks for the patch - it could indeed help prevent future issues.
Best regards,
Stepan Neretin 

вт, 11 мар. 2025 г., 17:32 Daniil Davydov <3danissimo@gmail.com>:
Hi,
I am posting the new v2 patch, which is now rebased on the `master` branch.
Waiting for your feedback :)

--
Best regards,
Daniil Davydov

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