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 1wT09C-000Fb7-0j for pgsql-hackers@arkaria.postgresql.org; Fri, 29 May 2026 16:33:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wT09A-003Sez-1Z for pgsql-hackers@arkaria.postgresql.org; Fri, 29 May 2026 16:33:20 +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 1wT09A-003Seq-0c for pgsql-hackers@lists.postgresql.org; Fri, 29 May 2026 16:33:20 +0000 Received: from mail-qk1-x735.google.com ([2607:f8b0:4864:20::735]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wT097-0000000099W-0eqm for pgsql-hackers@postgresql.org; Fri, 29 May 2026 16:33:18 +0000 Received: by mail-qk1-x735.google.com with SMTP id af79cd13be357-910f734b477so1428798485a.0 for ; Fri, 29 May 2026 09:33:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1780072395; cv=none; d=google.com; s=arc-20240605; b=h4leXH2EZ55X/xYaGnpzWyDvCVVG1sJlt6aJZEHmuO5Kk0tQ8kdSg9neAsf16+rfS9 S0D7VpMXrX7nFNksE8Mha8UvXd5mVmjKj8BnFvfvGECNxcJrMGjJQOPh5Ipt8EMlPLDw oL/3a0WIXen4ulduM0Y05R624BUzAMhH4DlKJSIJB8mviIfqHC5HgSrAYN3k8uXcrFGs DRt8wg8P6JxO0QgF246Y9Js0W5Y7clu7XI005ttj5kKRJyoLhQiEV4NaPc/p66qDo1QN W+eUvGhWIKANeuQc6d6HGVn5NU5B3khEKt9/JAAekKejwKnzE07oBj6opo5xLPPASlDC lQTA== 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=eeHl4ePstfGnC26QUb8zyPQ5rZciKJLo2BSawPT+nus=; fh=GB7TmI7M6Y28qT2ZDqtrTWnAHNonaFJx+hcppf1fpwA=; b=hEuqcrZEH11wK7iKMzFJ4hy25CU4Qb8JFJcl+u9TnJypQM10uPtN9zm0CRW2x0G2Jl NBR1q91lHkKMlMmpuVtC5NhAs14EfM1cefAri7AqGcoPXQ6NWUdsvEPnQSVaRIURGbpU D0NqNI3VB3mMYTGiyjbKyn3YPMGiXOrDs24kVWCMp6lr76zXqlyGSAVSsX4yHaLxX+i6 cV1cSxGTOugaM1SWtTVf1U5yUQUgf4jUmBDFJ5LBjBMqSfuq+3ssp0EdOh67s6mzAvoe TjlWz4vPLmgomFIHowhfSHPrj1g0IXHS03o0Z3QfSiiGukfBQbuZhQffmKm5ttERzHcZ HzQw==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1780072395; x=1780677195; darn=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=eeHl4ePstfGnC26QUb8zyPQ5rZciKJLo2BSawPT+nus=; b=BtaNp//5wHrRLjWlO9aNGyvfKefcML3tqnHwc9jtiqeQ13zhoqyfmCCulyeUrx+Dzk 0hJ1N/O3d66qmQIwnqPq7oh2xYh87VBCN4OfcL5FXD7b+UZa0FGYCncc9GO1ntAvNEvi XSTNRD5MrMRK9ANqK2Pd/qvO91BZKh6gVHB0Qe+/snKmHpdbRap3hPWhyl+zDbsd9S3d jzvc465/4kYnI2yAqgbYf0XunQxV7cHpScn7YxqFJXr5HjS1Eo5j0hba7MpSM2DgzXNg lnvIjqIkyGDIrrgiSf8YtyT/nZGwCcv3AN7q5RmFCuAR+N810Xge37BWajWi1QPTIa1Z z4Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780072395; x=1780677195; 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=eeHl4ePstfGnC26QUb8zyPQ5rZciKJLo2BSawPT+nus=; b=HyiU7PEuqbtP1tby7e6E8l8u794LfZzY0uGU5X1y0b3bhthDBt3h2cnmFfvs9ME648 o7lJJLVoT4f+zXQ5fmXFOWCY+E/zDyj9hV7aBkg1BVnGQazSjO+NTsCypVF1IMU0Wkpe TmoE40hlIDNdc6pvDm5/dlyh1TobPx2LMJ8KIms0m3aXPZ6UkskNjWDdUg2ywoNPS6eZ AlR5s25Mozc7JSVR7rfwp93Fcw5wXDwbznZiYYaDtMnMYVY6Axs7GSuNgwopqWKWjXSE Pbb1fv+uUzmPT/iezlEflxlkpLvmIJkNP0wcZKMn6tHIV+fF5o9uNkOtaADVzEVMLIuM Y80w== X-Gm-Message-State: AOJu0YwCx+oBWn2cIs/1TebjwW4mBEITsDbPdV1guQP7QpKUN0vioK9R rMIlCrJy1XI28L33SROhDedlweIwGpsizXplINZVUj48BzDB0PXBhP+9pA263gfJM1z69aRJe0i zZCjzhm0hmxd4/41IY0tWUAHrQcsJyrOCBShCUhKU X-Gm-Gg: Acq92OHCN5oEQIkfzBZcy1bUMtNdMuSB4/7xn0KNRSG93oIDMD7LbmV0iUD/YWWE0bW hMzahq0q3Kgytffrw5DFEBhg2nQlUYvL9GBiB11fU72OMUvbjA6hMuHwx2ZmX5DC93z7hucuLVI g9s3SezBVi2T8hq9SY8ObnJvcnGUSnvwa1WdgDuUWAY9pxOjeb9o0KRfKKMlj4FL++SfdbKgNjW dTCINHvxVzUbF6yDqHv/ylMjJelCbe1bendcAvMd1gIH7xz3cJ0TTL7sZeCv73X+tGnOBMo6gY+ s1M1x6lf/wFHhODfeKnJ X-Received: by 2002:a05:620a:648d:b0:914:db82:f791 with SMTP id af79cd13be357-9153dc29a52mr51446685a.49.1780072394934; Fri, 29 May 2026 09:33:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jacob Champion Date: Fri, 29 May 2026 09:33:03 -0700 X-Gm-Features: AVHnY4KIiZHsfc30q6UrZhPTtylVCR7YV8XOjJmPx-wkfHGLgSAVjr52-LRoZR0 Message-ID: Subject: Re: future of PQfn() To: Nathan Bossart Cc: pgsql-hackers@postgresql.org 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 Fri, May 29, 2026 at 9:11=E2=80=AFAM Nathan Bossart wrote: > I'm certainly open to other ideas, but I'm afraid this is the best I've > come up with in my admittedly limited time thinking about the problem. No worries -- I hadn't meant to block progress here on protocol design. I think keeping PQnfn() for the immediate future is a good plan. I just wanted to plant a seed for getting away from this problem eventually. (As for pie-in-the-sky alternative ideas, the ability for middleware to separate contexts or streams of packets has come up before. libpq could theoretically mark its own "context" of server-side allocations that are not touched by an application-context DISCARD.) --Jacob