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 1u4zap-00AX3J-3G for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Apr 2025 10:02:07 +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 1u4zan-00BJIK-4m for pgsql-hackers@arkaria.postgresql.org; Wed, 16 Apr 2025 10:02:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1u4zam-00BJIC-P2 for pgsql-hackers@lists.postgresql.org; Wed, 16 Apr 2025 10:02:05 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1u4zal-000Lqr-13 for pgsql-hackers@lists.postgresql.org; Wed, 16 Apr 2025 10:02:04 +0000 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-54acc0cd458so7531396e87.0 for ; Wed, 16 Apr 2025 03:02:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1744797722; x=1745402522; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=a/O1tT+CDUb1A52QoV8SCfvXuX/1sqTYoEgMDj0MN9c=; b=VVQIx2a2DgqWnYAqAtdDukB7B/jm7p22SCQ2+2/Rul1NZAHd0E2RrQvvwnKlx2WUQ8 SYud647nreySX79Ef17subBQIcY60CwH+9nkuPTTT8rKKqUcz56B/EJ8rK+PTA4zRj8Z z/gRVcxEN8J2U6o7ms8eMKj1ZqQYHG412vabFmHWuwtoifOSm6VZ5X1LZL0/ZPzDmQCv xp/VuYfhpuzML2dL7UdfGNVGJl4CtEb7pmo8JqqPDcI4wHeghl9LLWdf/cNH1clS/KU8 KAhdunTIKSTpagPZ1GNrV668am470lfB2l6sl97XhiYmoKFsuWXMXCEJFCZSq98Ri2pc FH2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744797722; x=1745402522; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=a/O1tT+CDUb1A52QoV8SCfvXuX/1sqTYoEgMDj0MN9c=; b=uOwvYN69zt12Eg22apxuRzbEPV+cLMM2cfm5qGf/1HIMyFCSi0NO9zuXu+wvixGMTz dsTMMGde75rn2fNGJcX2BKS6d8vMnXyYWILrFyhrKk3pKsoxtySO+x2+Ofx+Bc20Dg2V LzW6wkQDgocKhk+SyrQdi+SzH68qNKvgAm5BfppebzKJsqdGqxUNJGb+gGyF1S7JB7qt znbl8Sb8n+eH4Gt7Ww/Liq0QKUAm2Ye1TlI4lcp3Cho+UTSNfeLWFOp0c2kNN3Zn6h6D 6/bTVDHMIXMqof8XYXvXJWBKfGS3mdtfe6wBpNQIF5edruTk0ep4D7i3raPoHe3CGW/2 lCrA== X-Forwarded-Encrypted: i=1; AJvYcCVyRZKlyMJUMEKulQ1r5h0E1HmnkZhHixV3qq3y7haAywuhkBS+DHw1CO/zSCp3Am/QCEUiZ/r4Qv2uZOk/@lists.postgresql.org X-Gm-Message-State: AOJu0YwwX+jV21iF2Skm8OZp/G/BE5eVDgQ6hM+bjD3uORJxYNviPyO5 dOviBPfUgzEvgI2RQFtNBHuUO4gI0ub6+Se16KssXEQ4GtbGVufGRki54GP3wg== X-Gm-Gg: ASbGncs7KHEQvLBNmDjsOLOfeszC69wEm/WiTAusUjny4+evTO2mK7QdAJEMT6U72Io EePkUr6zjz6EaxR8m9TDuuVOIckBf4178IUot01ifkl7tOCgML8AaUMcdPJfl5KmV641GrYgxcX xIXgCC2OeRv+0S4Kw2nWF9SHOxt0e/HBa1AId498AL0MC2X30mLZ0koS13NZlbY5FUyZt3pAKyv boqWce/ILRjiqEFHgdSJi3MvCKPkvVVu49m6DADHEbceE1Gu/UloCBDQTmCJ8JSO8FPcXKM4+Uy 9SWE5NNOuLbMHC5hTYgWjPy0JR12uwZEmFu6FMqi5w== X-Google-Smtp-Source: AGHT+IFP45j9K09s3EJHIJaCAx+VZU0ipzei5QgRImSm3FFYlhcoLRZKfNcYcw0KS50QpzQwYe2gPw== X-Received: by 2002:a05:6512:4016:b0:545:93b:30bf with SMTP id 2adb3069b0e04-54d64aee155mr418414e87.41.1744797721953; Wed, 16 Apr 2025 03:02:01 -0700 (PDT) Received: from ark.local ([104.28.230.246]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-54d3d51de87sm1623166e87.213.2025.04.16.03.02.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Apr 2025 03:02:01 -0700 (PDT) Received: by ark.local (Postfix, from userid 1000) id 9ED0EF20074; Wed, 16 Apr 2025 13:02:00 +0300 (MSK) Date: Wed, 16 Apr 2025 13:02:00 +0300 From: Konstantin Osipov To: Andrey Borodin Cc: Kirill Reshke , Tom Lane , Greg Sabino Mullane , Nikolay Samokhvalov , PostgreSQL Hackers Subject: Re: Built-in Raft replication Message-ID: References: <1798838.1744759182@sss.pgh.pa.us> <20FB597F-641F-48F8-8428-D8DDBA802D58@yandex-team.ru> <1832513.1744777613@sss.pgh.pa.us> <0ED408AD-2209-4D60-9142-B6D01DD0C46F@yandex-team.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk * Andrey Borodin [25/04/16 11:06]: > > You can run bash from extension, what's the point? > > You cannot run bash that will stop backend running bash. You're right there is a chicken and egg problem when you add Raft to an existing project, and rebootstrap becomes a trick, but it's a plumbing trick. The new member needs to generate and persist a globally unique identifier as the first step. Later it can reintroduce itself to the cluster given this identifier can be preserved in the new incarnation (popen + fork). -- Konstantin Osipov, Moscow, Russia