| From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
|---|---|
| To: | Igor Korot <ikorot01(at)gmail(dot)com> |
| Cc: | "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: libq API question |
| Date: | 2026-03-12 22:39:02 |
| Message-ID: | CAKFQuwZopezTfKnORWFod2Jqr1+BgFTEvb7+kvw=o-ELwtmKEg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Thursday, March 12, 2026, Igor Korot <ikorot01(at)gmail(dot)com> 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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2026-03-13 02:00:32 | Re: (PostgreSQL 17) View usage resulting in 'ERROR: unrecognized node type: 2' |
| Previous Message | Igor Korot | 2026-03-12 22:35:30 | libq API question |