From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: How to choose new master from slaves.?
Date: Sat, 6 Aug 2022 16:13:08 -0500
Message-ID: <e8e2a70c-ec40-f1a8-3c56-5fb0fb190b81@gmail.com> (raw)
In-Reply-To: <20220806204532.6zofkznvzgprckfa@hjp.at>
References: <MW4PR20MB45253764C649AF76E4B9B7E7F39F9@MW4PR20MB4525.namprd20.prod.outlook.com>
<20220806084026.cnzhqs3ykuextoyu@hjp.at>
<8c166f4e-1e66-3016-205c-4b244c4d573b@gmail.com>
<20220806204532.6zofkznvzgprckfa@hjp.at>
On 8/6/22 15:45, Peter J. Holzer wrote:
> On 2022-08-06 15:06:06 -0500, Ron wrote:
>> On 8/6/22 03:40, Peter J. Holzer wrote:
>>> Using sync replication on an unstable link is probably not a good idea.
>>> Every time the link goes down, A freezes. Is this what you want?
>> I had to fight my end users about how to replicate a SQL Server database
>> across a WAN. They of course wanted it synchronously replicated, but I
>> insisted that was a horrible idea, for the exact reason you mentioned
>> (though it "only" freezes when the untransmitted transmitted transaction
>> logs fill of the primary database's disk).
> Doesn't synchronous mean that a commit only returns when the transaction
> has been replicated?
Correct. I don't know what I was thinking when I wrote that.
Probably that transaction log data gets queued up and not deleted if it
can't send the data across.
> (The database can work on other transactions in the meantime, but that
> client is blocked.)
Eventually any client doing writes blocks. Readers might block if a writer
took an exclusive lock,
--
Angular momentum makes the world go 'round.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ronljohnsonjr@gmail.com
Subject: Re: How to choose new master from slaves.?
In-Reply-To: <e8e2a70c-ec40-f1a8-3c56-5fb0fb190b81@gmail.com>
References: <MW4PR20MB45253764C649AF76E4B9B7E7F39F9@MW4PR20MB4525.namprd20.prod.outlook.com> <20220806084026.cnzhqs3ykuextoyu@hjp.at> <8c166f4e-1e66-3016-205c-4b244c4d573b@gmail.com> <20220806204532.6zofkznvzgprckfa@hjp.at> <e8e2a70c-ec40-f1a8-3c56-5fb0fb190b81@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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox