Re: BUG #15460: Error while creating index or constraint
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Geoghegan <pg@bowt.ie>
Cc: paul.vanderlinden@mapcreator.eu,
PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>,
Heikki Linnakangas <hlinnaka@iki.fi>
Date: 2018-10-29T16:28:25Z
Lists: pgsql-bugs
Peter Geoghegan <pg@bowt.ie> writes: > On Mon, Oct 29, 2018 at 3:25 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: >> Sounds like papering over the bug ... > I may have been unclear. It would be papering over the bug if I went > ahead and did that now. > The advantage of getting the file size from shared memory is that it > doesn't leave it up to code like BufFileOpenShared() to find > everything through readdir() iteration, an approach that might not be > totally portable. We'll reliably fail if all BufFile segments cannot > be accounted for with the size-in-shared-memory approach, which seems > more robust. I wouldn't be surprised if that actually was the correct > fix in the end. Perhaps. Anyway, I think we agree that we should identify why it's failing before we decide on a fix. regards, tom lane
Commits
-
Have BufFileSize() ereport() on FileSize() failure.
- 1a990b207b86 12.0 landed
- 95c45718126f 11.2 landed
-
Use 64 bit type for BufFileSize().
- fa2ceaca4358 11.2 landed
- aa5518304213 12.0 landed
-
Adjust trace_sort log messages.
- cb6f8a9a7243 12.0 landed
- 886319d71bd5 11.1 landed
-
Fix some sloppiness in the new BufFileSize() and BufFileAppend() functions.
- 445e31bdc749 11.0 cited