public inbox for [email protected]
help / color / mirror / Atom feedFrom: =?utf-8?B?54aK6Imz6L6J?= <[email protected]>
To: =?utf-8?B?cGdzcWwtaGFja2Vycw==?= <[email protected]>
Subject: how to ensure parallel restore consistency ?
Date: Tue, 8 Aug 2023 09:54:38 +0800
Message-ID: <[email protected]> (raw)
PG version 15.4
i read code about pg_dump & pg_restore, there is an option -j/--jobs related with parallel,
i have questions about parallel dump & restore
1) In pg_dump when running parallel dump, it can ensure dump data consistency using synchronized snaphot,
why should it start a trasaction in every parallel jobs, also set isolation level ,read only, and no need commit trasaction
2) In pg_restore there are no actions same with pg_dump under parallel mode, how to ensure restore data consistency?
no trasaction and no commit action
3) when we do dump or restore under parallel mode, should we set whole database read-only(write behavior forbidden??)
发自我的企业微信
view thread (2+ messages)
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]
Subject: Re: how to ensure parallel restore consistency ?
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