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 1wR0O9-0022tG-0l for pgsql-hackers@arkaria.postgresql.org; Sun, 24 May 2026 04:24:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wR0O6-00GUP6-1e for pgsql-hackers@arkaria.postgresql.org; Sun, 24 May 2026 04:24:31 +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 1wPs5t-008wZE-1M for pgsql-hackers@lists.postgresql.org; Thu, 21 May 2026 01:21:02 +0000 Received: from mail-pl1-x62c.google.com ([2607:f8b0:4864:20::62c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wPs5s-000000001f4-2ytU for pgsql-hackers@lists.postgresql.org; Thu, 21 May 2026 01:21:01 +0000 Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-2ba856db1c0so40179005ad.3 for ; Wed, 20 May 2026 18:21:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1779326460; cv=none; d=google.com; s=arc-20240605; b=DqRM17XjcZKeXMKnDrFyvTkmTskLnXbg1bBDqUYAhxpKGbos67YT7X6X2XwM4KsDKQ 4WPmPSm4YGqtYXzt33QpaRdFtzp9j/3aEfqWSJGPikX75GTDbRicXfAFVbnb60jDnN+9 4Uzqt9NR4ubYH2kkHYaUMDPN1ybn5am5X6Y6t/Njvnh8ZBFyd7vqIZLNeIowhREJTMD3 6b5ZLqrmouFjOMrcIpgMPJW20W1WrV5mk0vmTqid1W6vuut1Wd9/3xUeTrnm9nIXfPDJ CoRx9TDNQZLLLdlqK0Ji5Z/+FBwxt6Ao3q09dSbHX3bZ+vod7alxmE3N0A4RvIUJl2yR 2FDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=QimuJKKZeWFfOD7koFjOQIy2dsBtRkWQeafkL5SKz9k=; fh=F/z1otVFJHDwiMAbNEazcNoxJK59xSTqWxXMi3PX3YY=; b=Ui3m+02oZL24LceFvZz6y0+/JprN/qiLKXnPn1UueU85d/ibav1TcfF72PBrOAxlSq Fz9EeQ30YyxASCq/JKHUw1FSQ3SZ+rl3DEzP4oPOodnVceNMIkQuWqRBIzalThLYO1+4 Y75hy2LKKaztSWkdyDPzx+cSw5zD6XhcSDPhTCfXk7/PPspRgDy1gWIkr7+2hzq9sUJ+ 3MC2XCC1So1zUobqK/HbGvULwKH47jfkLGGXlcaslKikwQyC1qPQkotrEEcar5hq2EQD OdwiBsp5xsNLDpzoEt8iV/E8W03uNEvNxmiVONUGnykvybDM0GBmZeantmacTstXMDgP qlgw==; 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=1779326460; x=1779931260; 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=QimuJKKZeWFfOD7koFjOQIy2dsBtRkWQeafkL5SKz9k=; b=Lqdj0bHFrS/NFjz/oWfZwqNCaNYIE5tqbXlCeZlPv0a9lCzgi8rKSH+FyKT4ycwxCO B+DiIwbPrTNBFC12JQJets0iMi7F1Dor0EPH52lXZGHS1XYaTj8Hd0suyHgLrXfkuTsV 2QudNmcSGqPDJq3a8PbWYDnizRWeXWzi8eexrMpnOqnDfb4KuPODPn58xcI4Wwv4uXGQ KsWWNkzwbTFHdTVITw3SaTvGWuXWe9bu3j8ZpcWnN131Eb3+gUNbkF28QCb0KT2J2bVg r6cmAVeljm9ayxIiWr+jceRP+Y78ecIs28mNsH6AaFm5Ov+YQxNk10Gh7AOcWx95JULM Y2lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779326460; x=1779931260; 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=QimuJKKZeWFfOD7koFjOQIy2dsBtRkWQeafkL5SKz9k=; b=DrlgIBK0dEJdKsG95Kf/Gg9YlSq2lB7DqFMwvs0zDzEMRgGP5Lo131lygM+qmJAOqa PdW2nEqvaL6QTazeGhaN+pYGH6hrFUycq9sKD86X/V0CVzb2bJGOPPUyAH5aCorpQALp 1e1oqaLEJA5MtemE/HMdu0Pjk0BpnzyL3g5W/B2NN6ItsEF6J4+6NaisjWSZ+Tfk2vE3 lQhYzmo+D+8vKEaFUfVgtCgwPrYnchouwWEjA+JkqBkzHd1H482RBZWZjVfrcE2CG195 6o0eEgI/OYxZxhMqWpYyzuAmy/4ganfVsAp2Q4VujWVlkv4MgU4AfDKpZeyf7VvB5tl+ dtsQ== X-Gm-Message-State: AOJu0YwQMG9I+SDRh6+1U2ubtu4W1QJqJqI+RrUPmXGP3cUa3bXvoA32 VnFzz9maKzdEEr5fwjIy22hR4Rwl6BkX+lxx2P/zkO6vgwlGa7zj1941eJkMhcRhA1tVzveSais mr+TXV/cfGPFU8tlPn2ds85pp1LXKqbSBi1Aykn8= X-Gm-Gg: Acq92OEh9yrL6QwOMV4mNvPLJB+bxR1AfGdQa/80zWWHSMnkuEPE5/DSSw2B8ZpLJ8D x6cyFyNTNq9D9+IEqfrvyQCBNmPU2gNeRicDj2Z0jcIWlit/Rw9Op/ArywXgBdMEsLZwu71Kt2W z4qhPe1tOg8OEbUXXLVSDlQoNrY6Q1bAq0tpKauLqHmkTM/NU1VRpjOTASG3W16vlJemEtaqNLi vxZV6+voY1rbW+eUcBXM97BIHr2QMERf95sB+HK6KgbgPnctIgpJ/rlR6Fqho43NVGaV37SJL9U ke+RenL4Ow== X-Received: by 2002:a17:903:3c23:b0:2bd:3d5b:e87c with SMTP id d9443c01a7336-2bea33d1b7cmr4556595ad.37.1779326459787; Wed, 20 May 2026 18:20:59 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Austin Bonander Date: Wed, 20 May 2026 18:20:48 -0700 X-Gm-Features: AVHnY4KtKXOhOqoNRZKSEDcXh4HSUDcaigr2oHGPszzAsWff5Th--gPBwTfjnzc Message-ID: Subject: Re: Patch for bind message regarding the number of parameters and result column format codes To: Dave Cramer Cc: PostgreSQL Hackers Content-Type: multipart/alternative; boundary="000000000000933cd0065249b971" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000933cd0065249b971 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I appreciate the follow-up, Dave. I hope this lands as-is, but for context here is the old thread I found that suggested that the full document should be audited and disambiguated for signed/unsigned: https://www.postgresql.org/message-id/20120901160523.GD2969%40momjian.us Given the additional effort required, I can understand why this was left unresolved for so long. On Wed, May 20, 2026, 18:12 Dave Cramer wrote: > While talking to Austin he noted that the docs for the number of > parameters is actually an unsigned integer. > > This patch corrects that. > > See > > 1. Parameter format codes count (line 4323) =E2=80=94 read at postgres.c:= 1725 > 2. Parameter values count (line 4348) =E2=80=94 read at postgres.c:1734 > 3. Result-column format codes count (line 4396) =E2=80=94 read at postg= res.c:2017 > > Dave Cramer > --000000000000933cd0065249b971 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I appreciate the follow-up, Dave.=C2=A0
=
I hope this lands as-is, but for context here i= s the old thread I found that suggested that the full document should be au= dited and disambiguated for signed/unsigned: https://www.postgres= ql.org/message-id/20120901160523.GD2969%40momjian.us

Given the additional effort required, I ca= n understand why this was left unresolved for so long.

On Wed, May 20, 2026, 18:12 Dave Cramer <davecramer@gmail.com> wrote:
While talking to Austin he noted tha= t the docs for the number of parameters is actually an unsigned integer.=C2= =A0

This patch corrects that.=C2=A0

=
See=C2=A0

1. Parameter format codes cou= nt (line 4323) =E2=80=94 read at postgres.c:1725
=C2=A0 2. Parameter val= ues count (line 4348) =E2=80=94 read at postgres.c:1734
=C2=A0 3. Result= -column format codes count (line 4396) =E2=80=94 read at postgres.c:2017

Dave Cramer
--000000000000933cd0065249b971--