public inbox for [email protected]
help / color / mirror / Atom feedFrom: David G. Johnston <[email protected]>
To: Igor Korot <[email protected]>
Cc: pgsql-generallists.postgresql.org <[email protected]>
Subject: Re: libq API question
Date: Thu, 12 Mar 2026 15:39:02 -0700
Message-ID: <CAKFQuwZopezTfKnORWFod2Jqr1+BgFTEvb7+kvw=o-ELwtmKEg@mail.gmail.com> (raw)
In-Reply-To: <CA+FnnTxct7egChhXytL_BjjGbzECF1=GucEe8SYjqLZoELupuQ@mail.gmail.com>
References: <CA+FnnTxct7egChhXytL_BjjGbzECF1=GucEe8SYjqLZoELupuQ@mail.gmail.com>
On Thursday, March 12, 2026, Igor Korot <[email protected]> wrote:
> Hi, ALL,
>
> In the docs I see the following:
>
> [quote]
>
> PGresult *PQexecParams(PGconn *conn,
> const char *command,
> int nParams,
> const Oid *paramTypes,
> const char * const *paramValues,
> const int *paramLengths,
> const int *paramFormats,
> int resultFormat);
> [/quote]
>
> Is there a reason why the parameters are int and not unsigned int?
>
Unsigned ints are, I believe, less performant, and losing half the value
space is immaterial here.
David J.
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: libq API question
In-Reply-To: <CAKFQuwZopezTfKnORWFod2Jqr1+BgFTEvb7+kvw=o-ELwtmKEg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox