Re: [PATCH] Use strchr() to search for a single character

2025-07-22 Thread Dmitry Mityugov
Corey Huinker писал(а) 2025-07-22 22:42: On Sun, Jul 20, 2025 at 6:21 PM Dmitry Mityugov wrote: Code in src/port/pgmkdirp.c uses strstr() to find a single character in a string, but strstr() seems to be too generic for this job. Another function, strchr(), might be better suited for this

[PATCH] Use strchr() to search for a single character

2025-07-20 Thread Dmitry Mityugov
strchr() is used, the compiler doesn't have to generate a terminating \0 byte for the substring, producing slightly smaller code. I'm attaching the patch. Regards, DmitryFrom: Dmitry Mityugov Date: Mon, 21 Jul 2025 00:50:35 +0300 Subject: [PATCH] Use strchr() to search for a single chara

patch: Use pg_assume in jsonb_util.c to fix GCC 15 warnings

2025-07-11 Thread Dmitry Mityugov
on a 64-bit ARM machine. `make check` also passes. I'm attaching the patch. Regards, DmitryFrom: Dmitry Mityugov Date: Thu, 10 Jul 2025 22:05:12 +0300 Subject: Use pg_assume in jsonb_util.c to fix GCC 15 warnings Recently introduced pg_assume macro is a great tool to silence GCC 15 war

[PATCH] Add const modifier to static functions in jsonb_utils.c

2025-07-07 Thread Dmitry Mityugov
x27;m sorry in advance for any mistakes. This modification was passed through pgindent, clearly compiles with GCC 15.1.1 on Arch Linux x86 64-bit, and ‘make check’ successfully passes for it. I'm attaching the patch. Best regards, DmitryFrom: Dmitry Mityugov Date: Mon, 7 Jul 2025 17:5