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.96) (envelope-from ) id 1w5eOG-003Tvp-2o for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Mar 2026 06:40:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w5eOF-001MAH-0n for pgsql-hackers@arkaria.postgresql.org; Thu, 26 Mar 2026 06:40:23 +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.96) (envelope-from ) id 1w5eOE-001M9h-38 for pgsql-hackers@lists.postgresql.org; Thu, 26 Mar 2026 06:40:23 +0000 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w5eOD-000000016Dn-2vYC for pgsql-hackers@lists.postgresql.org; Thu, 26 Mar 2026 06:40:22 +0000 Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-38c01150eb2so4133181fa.2 for ; Wed, 25 Mar 2026 23:40:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774507220; cv=none; d=google.com; s=arc-20240605; b=WCPSCwG2QRhIujJfqLqs6AIGM3L/E1O1lM0Qeln9GUBBjluLR1/ghEpk8zosGL+0B3 1CiicEZiTRZwA/OEg/uGWP98RPXPaFR2J8SzbAwmj4uBERpJER4DOZcp3WVLOOXo7Dgq Whqy+Eao/wXNYHr/pTWVd0r/0aXmU3Rmj+LwXVThiVkdfDadbSbCrvRg1q5c9Q3H9Znw 6+3Nm/2M4QLUtAVwqBWQoucwgP1voxWrhZqppUlEpHtuI9HC8oK/FR2euwByhXCspLnn yi4HuUcREd+m6ap2BpRITl40M/fx1L1JIXQrF3zUg1bf41JsswRB+hebIip9VJSB7hNL bbEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=WQ6fEcILlwltzGKGEmuuRxs3c0J5H+KaZAiEgUQesAA=; fh=OntLyedL9s5YwQCgLpLc4Omzsm/euqPvq1rpxj7ckN8=; b=HSivz8NtZFaOHn2TtwvfKzOXvp02ZgvVa+O3KtD1apQ+7B1vnTjkkDZAtMVy13n4sA p9vaV+9O4DogqfllrLC75c+r9Y27ih//63GZm6ElwNG48tAkZcNgAJ6Jdu5sSY5ZIKCi eR1JZ+lxT9f8lSPe2laRHBj+iwx0WCtLLN4GAViYQqw6eVRZif62x4PMjV3HAxm8ZgHX W23vr2d729dC7bEdeHj2u7HXMh5Qi4V9jpon2L0MzMD9l2n9irsD4WZ4x+LD5n0W/1gc m1rgyThpQu4l8LlvRcWG32ojEobK87p3vxNlxOj3LEW2e/HW+o9s3JlWUNPXiphov7P6 zULg==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774507220; x=1775112020; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=WQ6fEcILlwltzGKGEmuuRxs3c0J5H+KaZAiEgUQesAA=; b=HMq478L6iCUitScf8vpA2KXf7I9j3cB0XgAnfDWp1pOges9wdWGZ1rXfMEb0tXLbfB ZwnGiQFJDUj4ApAKFsWYLEfzPF9htFUf5XIyFX5nq5JwT3Tz/TMIAOZzzF8pb3/FgnXc GVzB8zsYkaIs4Dn98/qZzDKlhQ3a+B6V0RSLqAoJB1jKrtmHsTz8lUoYiJE0P7dHjKGq L0z2FtLm/3tRzXAW2DzxahAthNGN8wqDQMpMFJYgYYV9yUPk4MamVLELmFHvOXHzocNf JxHhXI5DyE0FQHIscjk1naU1V/+IFAgdmFSG3QZKePwj6wQvZMJXSJvSS7mVUu2hgu9i yu7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774507220; x=1775112020; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=WQ6fEcILlwltzGKGEmuuRxs3c0J5H+KaZAiEgUQesAA=; b=Bf6dwB9CvSO2DLIaljkFXvx60Hc88Q6WfDtEUyc6t/tjUjLTha7NcCYSJR8Zl79Ej9 zzT+M2ntJuNi0dPalSogtCQoKw80uLTNTmXVpQcMNAh/BLcNuibWQLBQsv0gaEbJpnUC pqrmjFajQccjyRwfyz+HagSYwgPUwKxoN6k7gAdI1mejrYj3XM4S6XpflhepbCD7zRlz VEq5X4LzSd6OayHe3JUXuR7r+JLF9hhcGdqakr4pRtcMh2VN+qMvDvaLw3wIQm2wLNoy wTDc7GRcofYTPKcjmLXTrGXYzGhV5im8n4+BLaSHKEtfwqgbzyq+cDAf7DvPPZzp99R0 Pw0A== X-Forwarded-Encrypted: i=1; AJvYcCUzdBZphVKdj3I+nveJG7Bg7349eOytiS8i5ZvpwXFGiyymX7XSzPo4bW8/IxHFWlCxa/wl+uZuXNNEmGC4@lists.postgresql.org X-Gm-Message-State: AOJu0Yz6tBgmJ6+Fp49YbsEsl01GlLgU/rMDKZO1qV3/EW/IFfjEfEvG pluMAxIqFVoLFNFkcrdlaLaIyZ7leKwXD65BvGrp9OocVh88Ccb792DhansX9sAcSfdCKbbYC8I t1DchV1oOdzRkxITv+9r8CunD7Q4+Yr8= X-Gm-Gg: ATEYQzxV6ZWOwvejDmcuRfjsd4Y5+cSHZMhQWPHK/BYKqrNOII8iDuuM1zrkNsoS18/ rqTl2fnBLs6K6Dd+DWVAHfqMmy1c5Qag8JyYTIokjwsmysqQl25yejHZrqWo/ia65pgIJFtccXY 9/MHCIomgxqVnJf8sPz3/Qqd7Q3+vwIrJ9ScqICR+F6BwRpWF+S63gaTvmwCUgNOVowHdekq8bb U3QD0F1r91JwyevLWsioyAmgIVeTpyeN+OcAcbNRgw5z2HfDot29nepC1KRhGnONp/ep6r1D4tQ BF2NrsUIURkAQ/J+0ETNqprlxJWIdPP7LnzHlMiX X-Received: by 2002:a2e:bcc6:0:b0:38b:f632:e0fc with SMTP id 38308e7fff4ca-38c430ca7e9mr27336681fa.1.1774507219799; Wed, 25 Mar 2026 23:40:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Amit Kapila Date: Thu, 26 Mar 2026 12:10:08 +0530 X-Gm-Features: AQROBzChDFVxG7YPFdHPgj9wl8VvV13q_uq1rsNUQ7FfGWUJYDdJq-GQvCW6tPY Message-ID: Subject: Re: [Patch] add new parameter to pg_replication_origin_session_setup To: shveta malik Cc: Heikki Linnakangas , "Hayato Kuroda (Fujitsu)" , "pgsql-hackers@lists.postgresql.org" , "Zhijie Hou (Fujitsu)" , Doruk Yilmaz Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Mar 25, 2026 at 3:03=E2=80=AFPM shveta malik wrote: > > On Wed, Mar 25, 2026 at 1:51=E2=80=AFPM Amit Kapila wrote: > > > > On Wed, Feb 11, 2026 at 5:09=E2=80=AFPM shveta malik wrote: > > > > > > On Wed, Feb 11, 2026 at 3:41=E2=80=AFPM Amit Kapila wrote: > > > > > > > > > > > > I see your point but one advantage with the proposed code change is > > > > that it started to appear that we can extend this part of code easi= ly > > > > in the future as it separates most of the handling related to when = a > > > > user has given acquired_by parameter's value as zero and non-zero. > > > > > > Okay, yes. So I am okay with it. The slight change I suggested (if to > > > else-if) and a comment will make it more clean. > > > > > > > I have tried to address both your suggestions in the attached. See, if > > this looks okay to you now? > > > > LGTM now, thanks! > Pushed. --=20 With Regards, Amit Kapila.