Re: Incorrect Assert in BufFileSize()? - Mailing list pgsql-hackers

From David Rowley
Subject Re: Incorrect Assert in BufFileSize()?
Date
Msg-id CAApHDvqiwifZiip=swWjRNA1Zo9sO9c0CMvfR5M8nvbq1X4TRw@mail.gmail.com
Whole thread Raw
In response to Incorrect Assert in BufFileSize()?  (David Rowley <dgrowleyml@gmail.com>)
Responses Re: Incorrect Assert in BufFileSize()?
List pgsql-hackers
On Fri, 3 May 2024 at 16:03, David Rowley <dgrowleyml@gmail.com> wrote:
> I'm trying to figure out why BufFileSize() Asserts that file->fileset
> isn't NULL, per 1a990b207.

I was hoping to get some feedback here.

Here's a patch to remove the Assert().  Changing it to
Assert(file->files != NULL); doesn't do anything useful.

David

Attachment

pgsql-hackers by date:

Previous
From: Elena Indrupskaya
Date:
Subject: Re: First draft of PG 17 release notes
Next
From: Ranier Vilela
Date:
Subject: Re: Fix resource leak (src/backend/libpq/be-secure-common.c)