Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t19gz-00ExwQ-Tc for pgsql-general@arkaria.postgresql.org; Wed, 16 Oct 2024 19:28:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t19gy-008tiF-5v for pgsql-general@arkaria.postgresql.org; Wed, 16 Oct 2024 19:28:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t19gx-008thz-RS for pgsql-general@lists.postgresql.org; Wed, 16 Oct 2024 19:28:20 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t19gw-001PRO-0c for pgsql-general@lists.postgresql.org; Wed, 16 Oct 2024 19:28:19 +0000 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-4314b316495so1642825e9.2 for ; Wed, 16 Oct 2024 12:28:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729106897; x=1729711697; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=gIF4hXqg8eHasclWmF8Pmz59kh/PjbqldIOKpyZJGzY=; b=e7I4IUuAqMRDYceawc1r2lMlRum4wN9V3DRaA0c6jtjR8BhEOtm2ZoDWWZiA5dijXe JmKpDYIronx5MWxZeeh7AoNuWgE0R97DzKIXYoxZaY5eYkZAHADHs/PN40RNQBlBtayS aoe3jxnVcCGQXPJwX1lbBvklm+ozCFbd4egSwNekFibOF1ZPxX9ArGUZissgKPw3QL0/ Ai64A/dAxcfW5qwil2POlIA4olYeBcHFUMTWT4IanAI6fl8KCWYyCyTIU5QscsIf2UeH 6B4X4CQ0y5zxQq/S0S5tTTgPYKJJSbgCF84Gy0qEGBH08APdtbpmnzqWqthamoAvdmdb jygA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729106897; x=1729711697; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=gIF4hXqg8eHasclWmF8Pmz59kh/PjbqldIOKpyZJGzY=; b=nV31OqWt0r/qOn9tVgvSahyN0ZjRaIvEx5DJrxWGADKmQzDPZLCOJmURZQM/uGTC1j rfayIqhIbNAvkAlUNP8dabkj8zdg/f8qgtEMXZyjL2cbt7TC61gThC8RDNq8CIkqrQ8/ jbD7fRANE0BdyfMAhQ6kGpQ7/x4ef60oNt0wSbH1BwkiZ491wMP7SnNwVBT5EaMA+3it 0tdxPuh6a0+c/kc1DgHZ45X8dJWf88yFgIIZDDqnW6ZwYFgzirZZIzBUZRCr5Df9dLB3 wsGOan0kvXjoiI2/VN3hf1oggc5eCrpgWvuae5jX8+HErog7sCCCwy0FyGhKhM2TdowM Wopw== X-Gm-Message-State: AOJu0YzV93Mgs/I/9p9M6AUd/jp12Dbs4X5Q3h7r3LKNBiUm9qn/FISS 3NRQby9WWygljBJzat2nzQcpQaynEps40oNqoX8TYiDP0aUz5pZTlCI8F9igtjOe07mNDwhxT1F f+lcGf6Y4k/IGGwmKq+BOiWUQIUvtOBQk X-Google-Smtp-Source: AGHT+IETbFxTSk5hUvOjwjjUhRD6n0CJgdkq2YDRFzQE4+WQgmoLxHiBWltzX2qKXXkMRN1//IojConnDZgcXKRyGSo= X-Received: by 2002:a7b:cd8d:0:b0:431:5194:1687 with SMTP id 5b1f17b1804b1-4315194172dmr26255145e9.18.1729106896365; Wed, 16 Oct 2024 12:28:16 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jacob Biesinger Date: Wed, 16 Oct 2024 12:28:04 -0700 Message-ID: Subject: Re: serializable master and non-serializable hot standby: feasible set up? To: Laurenz Albe Cc: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000005632f906249d12f6" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000005632f906249d12f6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Oct 15, 2024 at 9:23=E2=80=AFPM Laurenz Albe wrote: > On Tue, 2024-10-15 at 16:27 -0700, Jacob Biesinger wrote: > > *would you* expect to be able to stand up a `repeatable read` replica > against a > > `serializable` master? My expectation is that you'd simply change the > setting in > > a .conf file on the replica and be good to go; is there something that > would make > > this process really difficult / impossible? > > I expect that to work fine, at least I cannot think of a problem with suc= h > a setup. > But I have been wrong before, so test it. > The setup (serializable master, repeatable read replica) definitely works -- we've been running that way for over a year now. I guess I'm really asking "how would you go about getting the replica into the appropriate state?" Would you expect to have to downgrade the master's isolation level as I describe? Or would you expect to be able to stand up the replica using a modified conf file initially? Thanks as always for your help! --0000000000005632f906249d12f6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, Oct 15, 2024 at 9:23=E2=80=AFPM L= aurenz Albe <laurenz.albe@cy= bertec.at> wrote:
On Tue, 2024-10-15 at 16:27 -0700, Jaco= b Biesinger wrote:
> *would you* expect to be able to stand up a `repeatable read` replica = against a
> `serializable` master? My expectation is that you'd simply change = the setting in
> a .conf file on the replica and be good to go; is there something that= would make
> this process really difficult / impossible?

I expect that to work fine, at least I cannot think of a problem with such = a setup.
But I have been wrong before, so test it.

The setup (serializable master, repeatable read replica) definitely work= s -- we've been running that way for over a year now. I guess I'm r= eally asking "how would you go about getting the replica into the appr= opriate state?" Would you expect to have to downgrade the master's= isolation level as I describe? Or would you expect to be able to stand up = the replica using a modified conf file initially?
=C2=A0
Thanks as always for your help!
--0000000000005632f906249d12f6--