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 1wSofA-0007S2-2e for pgsql-hackers@arkaria.postgresql.org; Fri, 29 May 2026 04:17:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wSof7-001Pa5-32 for pgsql-hackers@arkaria.postgresql.org; Fri, 29 May 2026 04:17:34 +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 1wSof7-001PZx-26 for pgsql-hackers@lists.postgresql.org; Fri, 29 May 2026 04:17:34 +0000 Received: from mail-ot1-x335.google.com ([2607:f8b0:4864:20::335]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wSof5-0000000044w-2RS2 for pgsql-hackers@lists.postgresql.org; Fri, 29 May 2026 04:17:32 +0000 Received: by mail-ot1-x335.google.com with SMTP id 46e09a7af769-7e612d0693eso5561718a34.3 for ; Thu, 28 May 2026 21:17:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1780028251; cv=none; d=google.com; s=arc-20240605; b=TYpPbQ2qn+0JLIVe3rJlGuEtzASskFNv9GdmX4PoClzOgvX5hwi1JFBH2NkMtmCwVu O9pRAdSABiUoH5mENERdY+jJ80Ju/jUadxOggC9QmXKWwvcqRmV51HGCAqtL/nivHkSk k/1DXEjRE/EY4gRaadjPaPnOY+o6KCM/ytM8X8uVz3VLMRflawq2FMN6bB+gPMgtEw2/ Ga+7lCD39laBF4HpeOHpT+7dscwSEXPLkN300ZHy7U5Rw9yLypRcrsOWS8FqWA7P5k8d DAWg1PC9mvw4AUMs87duKy3jdVz9ImfI6iiLhqchyvi7dEShhA6DMVB8JIhamYT9uG9q 2gYw== 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=dd8znbTL3kUPIKICTkd883rKBNicwPL8vSDKIW+M+so=; fh=ZJiwaLYfsY3LdkbRAPl4XqWGyxkMzjN5JAIpLMLgveY=; b=XW8ftq9Ho8gwP6uQBiDI8ZDrU4+pDJV5ww7lRRrfhqWzt6kX+FZpw20fD9S9HaPDOK eTOuy1LHBH8kLOIQoDUQIg5najqARpIxv4iXCup8+gc8/zswODkpdQ1R43LNRHTsWRZN Ukc62DRgy7bUWXr1Vi0tdtAFhEVlRAfT6jdgUQ/XqlklPIehfIW2dPMJjnTv28Lroz97 vCu7gV8WBdbOP4cc+aSserEorTCgbVfakYIgYf2qYH8gOTjkT0ppHEMMUjJ73RcTi1rE gFZcdD3hZaqGxpfPg/YkOFKP7B7+RFEWrpqoxj7pPW+/mWkzfqLhdvH7AhOcs0YOhIqf 5OwQ==; 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=1780028251; x=1780633051; 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=dd8znbTL3kUPIKICTkd883rKBNicwPL8vSDKIW+M+so=; b=B3SjEzFV2OL+V0rCgfnugfZe2Zbea0MM/PW37h5TFrN8DQLkyZjyOHBgc/wh/n5cX+ 4MvXYjxdDD1ovOAGlvdzLlT8TUELW2VtaD+2F5zU5dTnt+fBcywUAWDN2Dn1WECBPzCd Zg/lF8lZG0hcA5ZhQJGdM9gAKQTFiPdtLea9XE2mu5RGJVtue1hBw5ROVJyffFI62Euq r6WCzb3Y/A+SBowGyPhq/S9pHgZUJeL0XwjkAtAnG37PSYKzX/l3kWmv7jxQefPPLHzO XL7wfFvNMmf8ehkb/73hPaDXNSu+ejnUzzCRuY6ET41CIhe/xdtd3FoRw/QZR2LJe4P3 k2UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780028251; x=1780633051; 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=dd8znbTL3kUPIKICTkd883rKBNicwPL8vSDKIW+M+so=; b=ZM1jLX6D7k1lknZZBRMUSlmkxu21DGQlKfzxtKQE/M/7IfvoQsD77NzSq+lPBF/HXG /xV5rwGMwR2RBOBDpWhkrBthWbAtx/Fum+U73DFPaX4y0eX4ZlWYrazD9uxP61b0K8sm 7Zert/SXcN1OCGZfihSpssd2J4HGky/lk1S2JRQBVrscYJisQNj8koo+QzBoU6W5y2r5 sPUa5RR8gDOFq5wk0hqW06WGVESjsf4ZeZ/kgvdjMsCooXZdCTGCNsrMTpkoVXPuYutL M3gDtbfIH6kcZ6wNCG6ev8XEzOqDfIi10l8sc9d2kCdW9WhMWq3i7b2T22aL7i5tll/K oFDQ== X-Forwarded-Encrypted: i=1; AFNElJ/IvdD27Zudk7FE71SA6I5Gr78GHoDEcR3nt9y+II/FxQc4eJRjchTkBrtDF4Ez2+kJurqJD18fJg/ue6Gj@lists.postgresql.org X-Gm-Message-State: AOJu0YydnqFNAuDnNRJFSHhF3cPPnLZoj3hh0jeBesZh7FNU6AE5DTeV JtKMSuA6F5AvkPtJEFGT/DxIKBLF0XHsyGxY/lk5hIp4+IkisQ0Aszucrqh6el7yK6Y7f9JCNUz /UuJSMKNjGzWyg/Yn5trmv7723wOiN8Q= X-Gm-Gg: Acq92OEVTBoq9xq9LIGowo+PetCfA6Nevd/Z/PKf4SrySMC6ULkN/NdBHZHmTd/fKtb eqyzNPEpcstL1YnCpKORABW/T2lWsNVvaVU37qT/jNZOgEwutg3RwHjFhbxZNs8EBvpV/QUxHMf l3rSTfUuaGnMayxuiw/xQRvTF3R93bVGb8g/+93uDtOrUX7AyH56T4ooDVDl8jHckUaBcbNtlvX 1mzfDWun9kGvacJWXimweYQIatr810y97ak9gV24fAmT9iCt6mpoSO5jSyMqtwe2qKDpBNS8JzS 1VUyAPvvN81JDkq4pYx8tngkh6q7I2srpL49twfAX3szbvhajw== X-Received: by 2002:a05:6820:4df4:b0:69e:2fa:a5d5 with SMTP id 006d021491bc7-69e0407b19bmr698090eaf.55.1780028251464; Thu, 28 May 2026 21:17:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Fujii Masao Date: Fri, 29 May 2026 13:17:17 +0900 X-Gm-Features: AVHnY4JN5Xhc7MOezrJ1UzHjBYfxXlDTJ78JCXKNosQT-x-PlpR2zTncuQPKcqQ Message-ID: Subject: Re: [PATCH] Release replication slot on error in SQL-callable slot functions To: SATYANARAYANA NARLAPURAM Cc: shveta malik , 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 Thu, May 28, 2026 at 10:11=E2=80=AFAM SATYANARAYANA NARLAPURAM wrote: > Thanks for the patches, I combined these changes in my latest patch. Plea= se find the v5. Thanks for updating the patch! But, v5 patch caused a compilation failure. slotfuncs.c:119:32: error: too few arguments to function call, single argument 'try_disable' was not specified 119 | ReplicationSlotDropAcquired(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ../../../src/include/replication/slot.h:338:13: note: 'ReplicationSlotDropAcquired' declared here 338 | extern void ReplicationSlotDropAcquired(bool try_disable); | ^ ~~~~~~~~~~~~~~~~ slotfuncs.c:207:32: error: too few arguments to function call, single argument 'try_disable' was not specified 207 | ReplicationSlotDropAcquired(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ../../../src/include/replication/slot.h:338:13: note: 'ReplicationSlotDropAcquired' declared here 338 | extern void ReplicationSlotDropAcquired(bool try_disable); | ^ ~~~~~~~~~~~~~~~~ slotfuncs.c:922:32: error: too few arguments to function call, single argument 'try_disable' was not specified 922 | ReplicationSlotDropAcquired(); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ../../../src/include/replication/slot.h:338:13: note: 'ReplicationSlotDropAcquired' declared here 338 | extern void ReplicationSlotDropAcquired(bool try_disable); | ^ ~~~~~~~~~~~~~~~~ 3 errors generated. Regards, --=20 Fujii Masao