public inbox for [email protected]
help / color / mirror / Atom feedFrom: Frédéric Yhuel <[email protected]>
To: Dimitrios Apostolou <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: Christophe Courtois <[email protected]>
Subject: Re: ALTER TABLE ADD FOREIGN KEY to partitioned table, is not parallelized
Date: Thu, 5 Jun 2025 16:13:54 +0200
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
<[email protected]>
<[email protected]>
On 6/4/25 16:12, Dimitrios Apostolou wrote:
> In general I have noticed most operations are slower after a succesful
> pg_restore until VACUUM is complete, which is unfortunate as the
> database is huge and it takes days to run. Something I have on my list
> to try, is whether a COPY FREEZE would alleviate all this trouble, since
> all tuples are immediately visible then. Maybe a patch for a new
> pg_restore option --freeze is a better solution. Are my assumptions right?
It seems that the idea has already been discussed:
https://www.postgresql.org/message-id/flat/CA%2BU5nM%2BXvkUu9ran%2B5cY%3DTWQquLTpvzte4KVMK%3DaDfbr-x...
I've CCed Bruce Mojman, in the hope that he can tell us more about it.
view thread (9+ 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: ALTER TABLE ADD FOREIGN KEY to partitioned table, is not parallelized
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