public inbox for [email protected]
help / color / mirror / Atom feedFrom: Jakub Wartak <[email protected]>
To: Laurenz Albe <[email protected]>
Cc: Michael Banck <[email protected]>
Cc: Aleksander Alekseev <[email protected]>
Cc: [email protected]
Cc: Tom Lane <[email protected]>
Cc: Frits Hoogland <[email protected]>
Subject: Re: The ability of postgres to determine loss of files of the main fork
Date: Tue, 7 Oct 2025 12:57:43 +0200
Message-ID: <CAKZiRmz8FzrPg_r1uRYN4J04zv2CTdk=KoCpxCXf5P-M7pQvDw@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<CAJ7c6TMYvYBQpgv8k+4QnajqPcroOzrj7d3snBBTKX4tHQfVYw@mail.gmail.com>
<[email protected]>
<[email protected]>
<CAKZiRmwHKY=KTjBEL3S2cVQpo1OjHyky4BdgJm4Hkv1-ig9PfQ@mail.gmail.com>
<CAJ7c6TMCyhX4Z7FrS=ORCcKS1F_iZzfUuQM3shx64WKynoxjsA@mail.gmail.com>
<CAKZiRmy0CK3m0-raCdTDELg0JjY7qAqzEN9P5n4N4wGw6ys4tw@mail.gmail.com>
<[email protected]>
<CAKZiRmzGgOY5iQ=CFHJVE2df2Bz599bACqoWP3V_e-3Rw+XJhA@mail.gmail.com>
<[email protected]>
On Mon, Oct 6, 2025 at 2:07 PM Laurenz Albe <[email protected]> wrote:
>
> On Mon, 2025-10-06 at 11:19 +0200, Jakub Wartak wrote:
> > Anyway, I do not know if opening all the files on startup (or just
> > crash-recovery?) is the proper way
>
> I am not sure if you understand the problem at hand: how can you
> tell that a segment of a relation is missing? You have to know that
> there should be a file before you can try to open it.
I'm pretty aware that PG doesnt track the relation segment count, but
possibly it should as without that nasty stuff can happen. Then the
discussion was mostly on how practical it would be to just open all
files on big DBs during startup (if we know them in advance), but it
is just one of the ideas I suspect, I've just checked those timings
out of curiosity.
Anyway there's also a referenced earlier idea for single file relation
model by Thomas.
Another fun-fact: see READ_ONLY_OPEN_DELAYED details in Oracle.
-J.
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], [email protected], [email protected]
Subject: Re: The ability of postgres to determine loss of files of the main fork
In-Reply-To: <CAKZiRmz8FzrPg_r1uRYN4J04zv2CTdk=KoCpxCXf5P-M7pQvDw@mail.gmail.com>
* 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