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 1u9rNV-007F9l-7Z for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Apr 2025 20:16:29 +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 1u9rNR-009eHE-Jw for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Apr 2025 20:16:26 +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 1u9rNR-009eH6-9P for pgsql-hackers@lists.postgresql.org; Tue, 29 Apr 2025 20:16:26 +0000 Received: from mail-vk1-xa2e.google.com ([2607:f8b0:4864:20::a2e]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u9rNO-000EoM-2t for pgsql-hackers@lists.postgresql.org; Tue, 29 Apr 2025 20:16:25 +0000 Received: by mail-vk1-xa2e.google.com with SMTP id 71dfb90a1353d-5240d07fee1so161986e0c.1 for ; Tue, 29 Apr 2025 13:16:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=upgrade.com; s=google; t=1745957780; x=1746562580; 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=/rTmg6WPzT2BoCGFZYPHu4+F2aStmzpnnP/POAC5RcI=; b=eEbFj2b/S4jwKz89Jp67qpwCoXVQc5ajlQzgSzZG44TnqKPzcOK3AjgPzwhpsFPS8g x43aB+PY0pD2zlkTgCV7nppqXRdRUo0qqEX0VsERPOfqnYIjAXKT6XEcEc52q2fV0/cp Tp9Zy1sVlGAV1AR7NbROzQ9hPFxBG5LfI+VHg1oL6pOxsZwU/CrrKPysHZc2Vv0v6Lk1 UyFRiupFoYM5zqe/4FZ3BjNPXzQ8NJqbPCcRlJk6lC+0HO2FI8l5kVlsu10sWxwDSP4o ljtLlp54olsXd6v933OYCXdEhOmlfeO818xaKB3yWwgUwwLI7752aJl0qhJla4zijIoO 2b3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1745957780; x=1746562580; 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=/rTmg6WPzT2BoCGFZYPHu4+F2aStmzpnnP/POAC5RcI=; b=HQoakF++wq2dEC7j+L6fJnU8AWuwZX8w8AV/XtH3ckpTO1LGvTs2zHvBhpznebI+sM 9gu/A6A7BdRh3Q0iAcWWD2/lcFemq6WEcFRGPcVrdTNxwFfpOEfoJHOfSpTH3pPHieQ3 ctsOwUBAGH2FvdX+GEt1QGKOpMkqsOdiJ+MXUqjnQaiFE4udvztPzZuKtS7som8ZfOBh NO9Ax+MzYB1bPv5oJEY6VjLDKiRu4lbhoyiZaNCxEjpnMhbeQkNBpN1DTFIw6zyUH2al qdK/eg33oDSVISpfBIzoYUJBBHxNIpcYvthK8rbwcmRqJIIjinbHjFEg58/u9EGzOAfW zaUg== X-Forwarded-Encrypted: i=1; AJvYcCVJcLdqJQv0ntNGL3VPAA3LZFUFOPSVz+TgyMSN1U4m/ovJoQ30aAVbA/uz36f6HdikeN+TMqPnENavpqSY@lists.postgresql.org X-Gm-Message-State: AOJu0Yz7RxYUTyySfHgK7wjVY/ts4D4hOrXA4k9IzooKXhnUSIKtyVkZ YzI8cTVOTSkeqlP/1v9v+HlpQnYFeIzJ84knwx3IICj4nyoQclTwkQTsgyMCbtbHx4lkquGFFmy f1si7k32vgllnInkDwPMo8x1dbCcKtsndsSgz4Q== X-Gm-Gg: ASbGncuHDniB33xXIzUq6ho/mkIZZHAWDYy/Ygmm9rxWv/w7XnRsvaM614EiArDSMKm shmutHihWBmr8EcERiWVreznAVUyskuh0J02mOr/A7QIwYgjZJkiTnwPkgqx/AQuVxK1F9bvzyV CIGF1Udf/AVnvna6dZA8f01H4n X-Google-Smtp-Source: AGHT+IHa18o3zMfsSL2EBZ2QTP+X4uIZwG1Qb/b3Us595rSuykjyabSQ0pXa8OV1t1XhraRFvA+WDuTw5IAp559ODCY= X-Received: by 2002:ac5:cd95:0:b0:520:3f83:fdca with SMTP id 71dfb90a1353d-52acd5c7bb4mr217983e0c.0.1745957780508; Tue, 29 Apr 2025 13:16:20 -0700 (PDT) MIME-Version: 1.0 References: <1798838.1744759182@sss.pgh.pa.us> <20FB597F-641F-48F8-8428-D8DDBA802D58@yandex-team.ru> <212D5973-FDD0-4CF5-BCD0-2760EC319DF3@yandex-team.ru> <0AA66026-3707-4252-B97A-86CC65F1F22E@upgrade.com> <610bfd9db7c29f03ba0d44d6fb9feb7c724f6f70.camel@gunduz.org> In-Reply-To: <610bfd9db7c29f03ba0d44d6fb9feb7c724f6f70.camel@gunduz.org> From: Jim Nasby Date: Tue, 29 Apr 2025 15:16:07 -0500 X-Gm-Features: ATxdqUGhvAw1qscerVvjh4EwYTry7U8X6Ws-UsB86kQ1inDlzkoP3gn5vs3yzkA Message-ID: Subject: Re: Built-in Raft replication To: =?UTF-8?B?RGV2cmltIEfDvG5kw7x6?= Cc: Greg Sabino Mullane , Ashutosh Bapat , Andrey Borodin , Tom Lane , Konstantin Osipov , Nikolay Samokhvalov , PostgreSQL Hackers Content-Type: multipart/alternative; boundary="0000000000004cf2960633f07958" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000004cf2960633f07958 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I've always assumed there'd have to be at least one global stream, if for no other purpose than to be the source of truth about transaction commit ordering (though, I was thinking of supporting multiple streams for one database). Presumably the same could be used for shared objects. Or perhaps shared objects just get their own stream. Either way, having a master commit record that points at LSNs of various other streams is what I'd been thinking. On Wed, Apr 23, 2025 at 12:01=E2=80=AFPM Devrim G=C3=BCnd=C3=BCz wrote: > Hi, > > On Wed, 2025-04-23 at 11:48 -0500, Jim Nasby wrote: > > unless we added multiple WAL streams. That would allow for splitting > > WAL traffic across multiple devices as well as providing better > > support for configurations that don=E2=80=99t replicate the entire clus= ter. > > The current situation where delayed replication of a single table > > mandates retention of all the WAL for the entire cluster is less than > > ideal. > > I think the problem is handling the stream of global objects. Having > separate stream for each database would be awesome as long as it can > deal with the "global stream". > > Regards, > -- > Devrim G=C3=BCnd=C3=BCz > Open Source Solution Architect, PostgreSQL Major Contributor > BlueSky: @devrim.gunduz.org , @gunduz.org > --0000000000004cf2960633f07958 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've always assumed there'd have to be at least on= e global stream, if for no other purpose than to be the source of truth abo= ut transaction commit ordering (though, I was thinking of supporting multip= le streams for one database). Presumably the same could be used for shared = objects. Or perhaps shared objects just get their own stream. Either way, h= aving a master commit record that points at LSNs of various other streams i= s what I'd been thinking.

On Wed, Apr 23, 2025 at = 12:01=E2=80=AFPM Devrim G=C3=BCnd=C3=BCz <devrim@gunduz.org> wrote:
Hi,

On Wed, 2025-04-23 at 11:48 -0500, Jim Nasby wrote:
> unless we added multiple WAL streams. That would allow for splitting > WAL traffic across multiple devices as well as providing better
> support for configurations that don=E2=80=99t replicate the entire clu= ster.
> The current situation where delayed replication of a single table
> mandates retention of all the WAL for the entire cluster is less than<= br> > ideal.

I think the problem is handling the stream of global objects. Having
separate stream for each database would be awesome as long as it can
deal with the "global stream".

Regards,
--
Devrim G=C3=BCnd=C3=BCz
Open Source Solution Architect, PostgreSQL Major Contributor
BlueSky: @devrim.gunduz.org , @gunduz.org
--0000000000004cf2960633f07958--