public inbox for [email protected]  
help / color / mirror / Atom feed
From: Frits Hoogland <[email protected]>
To: Andres Freund <[email protected]>
Cc: Laurenz Albe <[email protected]>
Cc: Aleksander Alekseev <[email protected]>
Cc: [email protected]
Subject: Re: The ability of postgres to determine loss of files of the main fork
Date: Wed, 1 Oct 2025 17:25:00 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <cbnna46p73gtyzbw22x67vuihcqmqwfbjgbzkdmrynovatvjlf@kwks4cei2jgh>
References: <[email protected]>
	<CAJ7c6TMYvYBQpgv8k+4QnajqPcroOzrj7d3snBBTKX4tHQfVYw@mail.gmail.com>
	<[email protected]>
	<[email protected]>
	<[email protected]>
	<cbnna46p73gtyzbw22x67vuihcqmqwfbjgbzkdmrynovatvjlf@kwks4cei2jgh>


> On 1 Oct 2025, at 15:49, Andres Freund <[email protected]> wrote:
> 
> Hi,
> 
> On 2025-10-01 15:39:04 +0200, Laurenz Albe wrote:
>> On Wed, 2025-10-01 at 13:58 +0200, Frits Hoogland wrote:
>>> I am proposing the database to have the ability to detect when it has missing segments.
>> 
>> Just a random idea: one solution would be if each segment has a flag that indicates
>> if that is the last segment or not.  But that would break the on-disk storage format,
>> unless there is room left for an extra flag somewhere in the current layout.
> 
> It'd also make extensions / truncations more complicated. I rather doubt we're
> going there. Right now relation extension aren't WAL logged. While there might
> be reasons to change that, I don't think this is enough justification for
> doing so.
> 

What would be a achievable way of making postgres under the relation size?
How about a field in pg_class that keeps the final data page, so that the catalog
keeps the size, which then allows utilities and the database itself to understand how
many segments should exist?

> Greetings,
> 
> Andres






view thread (21+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected], [email protected]
  Subject: Re: The ability of postgres to determine loss of files of the main fork
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox