Re: Patch for bind message to clarify signedness of parameters and result column format codes

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Dave Cramer <davecramer(at)gmail(dot)com>, Pg Docs <pgsql-docs(at)lists(dot)postgresql(dot)org>
Subject: Re: Patch for bind message to clarify signedness of parameters and result column format codes
Date: 2026-06-10 13:16:28
Message-ID: 84f75c07-b8f2-45df-8457-aadb345e5dbb@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On 09.06.26 13:51, Dave Cramer wrote:
> Currently we don't say whether the number of parameters is signed or
> unsigned. Same with results

Instead of repeating this with every message, we should clarify this in
the section "Message Data Types".

I had always assumed that a type designation like Int16 or Int32 is
signed, because of how they look like C types. But on the other hand,
the POSIX functions to convert between host and network order only deal
with unsigned types. So it's not obvious either way.

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Dave Cramer 2026-06-10 14:03:40 Re: Patch for bind message to clarify signedness of parameters and result column format codes
Previous Message Tom Lane 2026-06-09 16:46:38 Re: remark regarding 4.2.13. Row Constructors