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 1vUmiQ-007W31-0g for pgsql-hackers@arkaria.postgresql.org; Sun, 14 Dec 2025 14:04:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vUmiN-00D9Ua-23 for pgsql-hackers@arkaria.postgresql.org; Sun, 14 Dec 2025 14:04: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 1vUmiN-00D9US-0z for pgsql-hackers@lists.postgresql.org; Sun, 14 Dec 2025 14:04:48 +0000 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vUmiL-000hGK-1i for pgsql-hackers@lists.postgresql.org; Sun, 14 Dec 2025 14:04:47 +0000 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-59445ee9738so2154084e87.3 for ; Sun, 14 Dec 2025 06:04:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeltef.nl; s=google; t=1765721084; x=1766325884; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=JkAhxl7zZOEcUp4VA0LYqdKiRPfy+h7voh41UZoZmJQ=; b=gJRWqj2tg59kNM/L4Jn/phogplFGsyB7XHL2UKhLliqPTRD/zjOFRLE4akcU8GBy+b yn9Aycv75Xu/ecPIAfqX7Er/mrL54ibiBDQcHK+2KW10i7p1AwdN+JMFXqlJXGibjYen yWy5U8bPSFNzm4OsTbVSX14lc1aO+R/yPai/8S1lIsB3dhfenJxekcuAeShKY+lPLZAE ZNzsrJWSLYCm0cr76ANhY9W0HBGj7KPtjOQaAsOOJBkdBTLK0AVnHAMi1knNdhVUXffw PVESEM8Ntispw9//L1yeu+8YplPYB7iZtXne1i7WmLbHLmRixSPtYC2oBCZkToz0b8Fg FTCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765721084; x=1766325884; h=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=JkAhxl7zZOEcUp4VA0LYqdKiRPfy+h7voh41UZoZmJQ=; b=cb/IPUPAWwGZRnA7Uvp4MLKqsq43S+6B1be/McahgoJur2NlOlMDH3zqUaK8sE5TLd nm2kdik7oOGhKF8BzxAomb8CiTLgqhgHn3lx2RbqDn5yfzGPOidhqIdhDRPIJTD2Qp8D 2+2NkBnC7fkfVJw7D1liTsukmn69bgS/8cM/lrUv5R3xRYhontRW9AAOjN1ebeCSIdOk W+ftdV0c4Ye3bAnhYQ7MsTzkHlrEd0cMNFvA2Atw3Xzgmj744ioMOqZ/FiLYiKAbvrpv MdzsH+2nIMYCC0hiY+VyZzNJ8wglPf0oMG0qI+EIJO5ZkimV2+rjLv2afQXgFTc5GKWQ ad7w== X-Forwarded-Encrypted: i=1; AJvYcCU1dYfzbi9U2AbUiqkEE7tmPtWsMut9lvENShTMRwK/Zsl0qAZAgUkv4huA5M6k3TE517vsIIMExXkADfiD@lists.postgresql.org X-Gm-Message-State: AOJu0YwbuXKReN0LBfGXx3qXwMNQFmm0Ks/YBwQg5TwyxeBwJopvCYUq zBsIpNMXfnLYZtwp09rpadkRk2LPxUfvxnToVrogGTWj9kIU7JHtvqEij4hAK4yUenfkqHsMnCT mmMFivlxkHd3b2nBf4TBArKy1gNeFloWo4+1muNsapw== X-Gm-Gg: AY/fxX6rAt7n25xeXQyZVsf8BMIIOi84dlXvpcI2pUUCRUpR1R5Hn0OJj6EUW4xyqQ4 j+zPfvQwoLAqSWO251V7orC8A3mV+wPzBeqNmjqzMicRj26xOZTzl0Fe9LdqwHykv9slduQ2eJg De8jMH0oo26hyTHikvdm1R2qx08mIiUX98oFMVtFHGDZKhUTTtx0WldJNW47lWaBIZXw+1m4lEB 4bUl3OWVxJmd6MzFrUcGH0QyU1cPwMgoJGwxNpKvHgIvfCxdA3f+eA7P+xlYY+oEImXPcSvF0+q ZGD2PkU= X-Google-Smtp-Source: AGHT+IGMZpU5gP5VdUDGIcEG0DbE6f5NWpjUszYAhMdf5L3I+12qBPZe3jCrwBOZ5qOl3fduV8tFOusj74BlFCuPMB4= X-Received: by 2002:a05:6512:3f1a:b0:598:eaaf:a4a0 with SMTP id 2adb3069b0e04-598faa7c9bcmr2473866e87.47.1765721084294; Sun, 14 Dec 2025 06:04:44 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jelte Fennema-Nio Date: Sun, 14 Dec 2025 15:04:33 +0100 X-Gm-Features: AQt7F2rxhEn5jN-N5cc-K4DZzdO3V8wMREXtHOpQJTnuiQ7ot2WxUy6xXbvK1vQ Message-ID: Subject: Re: Proposal to allow setting cursor options on Portals To: Dave Cramer Cc: Jacob Champion , PostgreSQL Hackers , Heikki Linnakangas Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, 14 Dec 2025 at 14:49, Dave Cramer wrote: > Here I was thinking that binary was the one that did make sense. The pgjdbc driver would like the results back in binary, I believe others would as well. I agree drivers would like binary results back, but it's unclear to me how CURSOR_OPT_BINARY is different from setting the result column format codes to an array of a single 1? That should also change all columns to be binary right? > Fair, but from my POV, we are only concerned with Postgres. I would say it's up to the other implementations to deal with incompatibilities. I get what you mean, but I feel like we should at least be concerned with popular ecosystem tools like, pgbouncer and pgpool. But then it quickly becomes an exercise in where we draw the line, what about postgres forks like Yugabyte? Or things very similar like cockroachdb. Both of those are distributed, and probably don't use our LSNs. So as a concrete example, if we add LSNs to the protocol, it would be nice to work with their version too if it's not too much effort. e.g. by specifing a length for the commit id in the protocol instead of forcing it at the protocol level to always be a 64bit integer.