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 1wSD5Y-003241-39 for pgsql-hackers@arkaria.postgresql.org; Wed, 27 May 2026 12:10:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wSD5V-008BU1-1f for pgsql-hackers@arkaria.postgresql.org; Wed, 27 May 2026 12:10:18 +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.96) (envelope-from ) id 1wSD5V-008BTs-0l for pgsql-hackers@lists.postgresql.org; Wed, 27 May 2026 12:10:18 +0000 Received: from mail-oo1-xc32.google.com ([2607:f8b0:4864:20::c32]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wSD5U-00000001ggh-10qU for pgsql-hackers@lists.postgresql.org; Wed, 27 May 2026 12:10:17 +0000 Received: by mail-oo1-xc32.google.com with SMTP id 006d021491bc7-69de237f0a3so462981eaf.1 for ; Wed, 27 May 2026 05:10:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1779883814; cv=none; d=google.com; s=arc-20240605; b=WYPdP+Ay8bwGvZoxUn02didEvPHfZhAClH5zNJkmijWFbMmxKrU6xN+GraW5Ey8znN uD5ZML7OaWPtL+dAPppjZaAwwG9MwTZUmXdEQQ7wDQyn1Eod2XNe/wc+w/gtUEqN/NJ0 0Yi87waonHLREJwJSFlipsYNA4DHz5W6X3W9UyR5ubpQUv1bh2E5iPn7HLkaThwJNXUu MOiG685iv9xsXDqR5rxvY4lJcDU0qYucE0FAvQEdYoS/5/pDV04EwiAmYg0KQ3r9twsH Op3X3S+0DFUkpm1N2KLAEwY1rrD8FcSkKad/2UUecRlVZsHHrOmFk6FOOWQQvFopNaFf YhBA== 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=gKlRtxOE0X7PdPsG2/zYydBzn1EwYhtQC8eWPhLqQ20=; fh=7f0zl+JJEnySiyZJv3Pkp6EqXZmVBS+n5xokeG5N3zA=; b=MtbX65y0sEqgRZ3RsMQK8jyBGcdscF4RfhcEMZ5sCULiRfZlkZsarOal0MGi9cP0zq N+cKmkovH3vLwJhM5vTlAxStBcUsCNlYs98YnJ40f/koMrWYWa8r+4EjVhKWgAW1sIhz dpeF4CAdScs7l+BFmEcTs98qUSi+zLJeRvlFJbLWqhbRI9SpSnky8oW7rRe7dh05gDhg Ve8ubuhJIk1Ix64kPrFl7qIhvrNU22DdNCcSr19sD1iBBCxD8gYDBl0y8Qj1VsHcThfS V6vcF+YjFTjXljStDJGuQtC9C2piTxvFEQ/sSL38chtVRHfVGnfKoBz4o6ViG8MgVlTt U/EQ==; 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=1779883814; x=1780488614; 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=gKlRtxOE0X7PdPsG2/zYydBzn1EwYhtQC8eWPhLqQ20=; b=cBRlKI3fZ2bd3eoy7S/SzgGHVqJzvO8s9Hxtoi6Qvh8E56hcrhhjY6bcWJWGtnoyjJ wDAVnTqHxu2TOiBN55q3Fh+kvSAIWUKoleoePuHnPXG2GK3kG3d04Q3e5xoioV1/N2wN IdZHqZu02ZZAyw+GHfBS1qP0T9uv/md+SvATAfKR4s4+ztsd1dv+MVwZqG55eM/5hpv+ lTFmtiP72XYeUCotcKkdssJLQTI0sJM1daIP0i6oEJm+1VDE6TduR6w8Aef3h4t6JZU4 5lgR8yvSUL0sdtUIoHDvCj7XOuw9wIk1vuBXRr6uyZG8stvGA59R6hoS4EKucGNoKmQ9 0VXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779883814; x=1780488614; 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=gKlRtxOE0X7PdPsG2/zYydBzn1EwYhtQC8eWPhLqQ20=; b=SmrPOvS6bD3Uy5aerzjJ6prqpxUyz8QIKf9nOTnRRUezFWhobzR1X6qJFP50dvQWD4 Nd8S7IKJiJCi+3EIei00iXvk6WsZWhD/Bw0dPGjEYKv1utxeOoTStn2eVzp353h5vfM8 phoHYQGfktz4msijBX+tegcNpaeAengWrlqrqnhBajYhWPsPY62+NlPZhpwlcY82GSrz 43/QxMf3aI6i2uQ3HuE4deN2qkkFdbspoLfAH/XqqE+wgYrPW7MtRHXjB0/nQjWeEU+D ip3+xPHxaZEfw9VCst4ZSamh14kAoz7VxNQI3d8HGSnXJucTg7X4g2cqy+3IYFcXYBKX CDkQ== X-Forwarded-Encrypted: i=1; AFNElJ+xuShEf+HZioUrAysAB8C7AJUhO24EIkq2ytHMZk0ZLNr7ilhPxwr3VE9LtWwftA5TeZ1Dhy5soXTUUML7@lists.postgresql.org X-Gm-Message-State: AOJu0Yx7xnyuJSjJ+Nrf2cZd/uETJxEnkqicrxuvKd2exXut8Y5thMw0 DahTrFQ8ZtSYEisodmVe0WledhaPcBKf3EnFUmAFdX60iL55RqtS5V6TL9i3TJMa8dsTChe3YGi LXMeDe8o1F9Ab6fwPM5D9ib4ETvZXv3M= X-Gm-Gg: Acq92OGhnDZ2Fg2YYEQ1o/qz3pn2FOza2LCVVcDHCWrcGpu4apx5UkeVFhTuMIBEmsX pk0w65+Y8pSMzRn8IwddscvCizxkJBVo6JymjIZ1U5jLaAZ/R93ps+4ChHIOuAOCr0H2JKSgLWj TiUDc8GCnZbC10EjOqruAacFI9qr3fYLEKHaVqz+Nrd38p6Ct6ZTRE4vDxaVAd6FJySsRtP4DxA kIUxWyt/AVK0yJlbWzhbsW25Qj0nx6abDxSxcnP4APyBMJAyGA+UDqQ9fcqW0HkwbiQuART1tZ8 Y52S8JrzmgDTzHownpPQ4QXWISF1BKs3ZkKrc4CNsO9EQuYMGPY+ X-Received: by 2002:a4a:d8ca:0:b0:696:77d2:475e with SMTP id 006d021491bc7-69d7ec4bc3cmr9807505eaf.36.1779883813714; Wed, 27 May 2026 05:10:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Fujii Masao Date: Wed, 27 May 2026 21:10:01 +0900 X-Gm-Features: AVHnY4LnCfS83cWkjM37SrZ-Jyc7uNv5rrvWTEIxv0uSRQiQRsh_cxLW2APHfo4 Message-ID: Subject: Re: [PATCH] Release replication slot on error in SQL-callable slot functions To: shveta malik Cc: SATYANARAYANA NARLAPURAM , vignesh C , PostgreSQL Hackers , shveta malik 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, May 27, 2026 at 8:00=E2=80=AFPM shveta malik wrote: > pg_copy_physical_replication_slot() should not have it as the common > 'copy_replication_slot' is already fixed in the patch. copy_replication_slot() calls create_physical_replication_slot() before entering the PG_TRY/PG_CATCH block. So if create_physical_replication_slot(= ) throws an error, wouldn't the same issue still occur? > I will review > the others. Thanks! Regards, --=20 Fujii Masao