Re: mdnblocks() sabotages error checking in _mdfd_getseg() - Mailing list pgsql-hackers

From Andres Freund
Subject Re: mdnblocks() sabotages error checking in _mdfd_getseg()
Date
Msg-id 20151210180142.GF14789@awork2.anarazel.de
Whole thread Raw
In response to Re: mdnblocks() sabotages error checking in _mdfd_getseg()  (Greg Stark <stark@mit.edu>)
List pgsql-hackers
On 2015-12-10 17:55:37 +0000, Greg Stark wrote:
> It seems to me that if you want to fix the linked lists of files
> that's orthogonal to whether the file lengths on disk are
> authoritative. You can always keep the lengths or at least the number
> of files cached and updated in shared memory in a more efficient
> storage format.

FWIW, I've a very preliminary patch doing exactly that, keeping the file
size in shared memory. I'm not sure it'd end up nice if relation
extension would have to grab an exclusive lock on the metapage.



pgsql-hackers by date:

Previous
From: Greg Stark
Date:
Subject: Re: mdnblocks() sabotages error checking in _mdfd_getseg()
Next
From: Jaime Casanova
Date:
Subject: REASSIGN OWNED doesn't know how to deal with USER MAPPINGs