Re: mdnblocks() sabotages error checking in _mdfd_getseg()

From: Andres Freund <andres(at)anarazel(dot)de>
To: Greg Stark <stark(at)mit(dot)edu>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: mdnblocks() sabotages error checking in _mdfd_getseg()
Date: 2015-12-10 18:01:42
Message-ID: 20151210180142.GF14789@awork2.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jaime Casanova 2015-12-10 18:04:54 REASSIGN OWNED doesn't know how to deal with USER MAPPINGs
Previous Message Greg Stark 2015-12-10 17:55:37 Re: mdnblocks() sabotages error checking in _mdfd_getseg()