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 1wScUY-003IVu-0M for pgsql-hackers@arkaria.postgresql.org; Thu, 28 May 2026 15:17:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wScUV-00CaHN-2n for pgsql-hackers@arkaria.postgresql.org; Thu, 28 May 2026 15:17:48 +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 1wScUV-00CaHF-1s for pgsql-hackers@lists.postgresql.org; Thu, 28 May 2026 15:17:48 +0000 Received: from mail-oi1-x22b.google.com ([2607:f8b0:4864:20::22b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wScUU-00000001sOC-1UmL for pgsql-hackers@postgresql.org; Thu, 28 May 2026 15:17:48 +0000 Received: by mail-oi1-x22b.google.com with SMTP id 5614622812f47-4855562f32eso2475661b6e.2 for ; Thu, 28 May 2026 08:17:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1779981464; x=1780586264; darn=postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=2UnifGit0su6VwbC6ElM8/OyHu6jwq9xbOjv3Rr9VeA=; b=H6RDErylNaRhTZ41xUiTotVk8j7+n3ZaUfELr33EBj99t4U8OFrlvBof1XtE5NTtuU aBNAiFdMKl0R8JcrI4ZL7Y4HiqcrFeAd2pWDaVQ16kWKQZQ0taLuvdg5k7O/5cIn5MFU 83WmiqRRAsDra84EhkoUF18A36KXgZgCanPeFagAYLAEPYVKfudlbeP4t5V1cC4QRymM jbb5dh7OVIXg/ANPBQsjy7XTO3pqiFFlpmilQ44UXlR2ZEiZLRZIU/dR7qa47/jkj4wk XVwLV/mr3WDpFWXRuA6TiMPX2ifGeacCKh8s8tQt/xcde7eC9OmTYHi03uYvHRWnPRch xPZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779981464; x=1780586264; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=2UnifGit0su6VwbC6ElM8/OyHu6jwq9xbOjv3Rr9VeA=; b=I3N7F9kvru9fIF3eLu6T1q/yAAN15ErMyQlPnM8e/TyIvV1O3ugIj5e41YMWGBNaxy H8mNaTa/wYHJg4IJAS6rPxVozjm+m11QC4+8jXe5Pko36fkKNY5Gfd0SRm0Au7Lowggj neJPE050uJdFSRKNhFoFyUZc5kbxRkiZ+Rw5iQX8hVTp8JkCP6naZ7TCRaqQge4nF2WM T8M2jDGaMUce5ng1R7yipaJQuFvQ9ODYGnbs46lGWlD0KGeHYxNwlgNSHu7rJ4uDC2+A TgIuaCibsx9b8/uo2EHsL0YzijsA9p5Lb6jfBqgCB5llFm+xVs0oeZ2D9apDSQDfVUKn SwDg== X-Gm-Message-State: AOJu0YzZV+igGUtVyzagbtHQWsfv5Icf0JbMcG7BQD+ms+y0yrhtx/WB 23PLJTN9oh/XoMdMRe5H7ok0dojr29eDLoUnIIX3ottUpQ8jr2IF0m9W X-Gm-Gg: Acq92OE7z4Y55U2cwcRNHVcLxgiwhXBIsvz4Ha9fnGUzNb4lZGp0BU6gGDgs8wp1306 KASZ640t7jwveG+zTUnMJP2eHjuwTdKTxr6nYhpBxgq4hI1bQo1PQmXhR+QU46/y9AME9AM1vMz LjnfmK5PhT/uhvFQNTsU8Qedm1eF2vFfa/aOpocQd5DE4uYElnmXQM5QzlfjrOLnOlYcnWm1zc1 4DLTRQ8Cap273DvDwX1nmHtm5qr3SslSBGaVbrlY0SVy1Z66GcIV5uQ597it0KBs9jHITELKlwb Ogxu3fM7XcaOSuHSYx9XlEKeGAf92wXakXgYo77DFf0+Y4zU0jvlVKCUaIicT3xX6CtveB7+/x5 p/WpKEm8SXretiCCwdaPefo/4WTWNq/F933rElz9drvfpTyMcHB24DEssyYRZOGINP6T5f2MGdn vcB93dJdWT2yreUqmWz9MCFY0fMyOKjVVmbBaO6JigYNcqUPP5ItnTlOMy0xow2SXY8zTIKby9G Uwj9XJQUnI8V3b3oozl7VeoK9CBMd1i X-Received: by 2002:a05:6808:5190:b0:479:d9bc:a1d9 with SMTP id 5614622812f47-48549e9abc0mr15658599b6e.1.1779981464142; Thu, 28 May 2026 08:17:44 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 5614622812f47-48554538d1bsm9267088b6e.8.2026.05.28.08.17.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 May 2026 08:17:43 -0700 (PDT) Date: Thu, 28 May 2026 10:17:41 -0500 From: Nathan Bossart To: Jacob Champion Cc: pgsql-hackers@postgresql.org Subject: Re: future of PQfn() Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, May 27, 2026 at 02:39:53PM -0700, Jacob Champion wrote: > On Tue, May 26, 2026 at 12:55 PM Nathan Bossart > wrote: >> I wonder how difficult it would be to teach the protocol to advise clients >> when prepared statements are deallocated... > > Probably not too difficult. But it seems like most, if not all, of the > stuff in the DISCARD ALL umbrella is a target for a feature like > that... This feels a lot like the perennial request for proxies to be > able to separate their own context from the per-application/per-user > contexts running on top of them. I've been thinking through a bunch of options here, and a new protocol message seems like the best choice, if for no other reason than it solves a general problem for clients. I'm working on a patch that I'll post in a new thread. -- nathan