Incorrect Assert in BufFileSize()?

Поиск
Список
Период
Сортировка
От David Rowley
Тема Incorrect Assert in BufFileSize()?
Дата
Msg-id CAApHDvofgZT0VzydhyGH5MMb-XZzNDqqAbzf1eBZV5HDm3+osQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Incorrect Assert in BufFileSize()?
Список pgsql-hackers
I'm trying to figure out why BufFileSize() Asserts that file->fileset
isn't NULL, per 1a990b207.

The discussion for that commit is in [1], but I don't see any
explanation of the Assert in the discussion or commit message and
there's no comment explaining why it's there.

The code that comes after the Assert does not look at the fileset
field.  With the code as it is, it doesn't seem possible to get the
file size of a non-shared BufFile and I don't see any reason for that.

Should the Assert be checking file->files != NULL?

David

[1] https://postgr.es/m/CAH2-Wzn0ZNLZs3DhCYdLMv4xn1fnM8ugVHPvWz67dSUh1s_%3D2Q%40mail.gmail.com



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

Предыдущее
От: Alexander Lakhin
Дата:
Сообщение: Re: cataloguing NOT NULL constraints
Следующее
От: Kashif Zeeshan
Дата:
Сообщение: Re: Document NULL