Re: PATCH: jsonpath string methods: lower, upper, initcap, l/r/btrim, replace, split_part

Поиск
Список
Период
Сортировка
От Florents Tselai
Тема Re: PATCH: jsonpath string methods: lower, upper, initcap, l/r/btrim, replace, split_part
Дата
Msg-id CA+v5N40+gPfir3ShsA53SLWeQa5eMy7Bm3vnOKLa5YLNEwZO7w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: PATCH: jsonpath string methods: lower, upper, initcap, l/r/btrim, replace, split_part  ("David E. Wheeler" <david@justatheory.com>)
Ответы Re: PATCH: jsonpath string methods: lower, upper, initcap, l/r/btrim, replace, split_part
Список pgsql-hackers

On Fri, Jul 11, 2025 at 9:48 PM David E. Wheeler <david@justatheory.com> wrote:
On Jul 10, 2025, at 19:23, David E. Wheeler <david@justatheory.com> wrote:

> Now with the `ISO C90 forbids mixed declarations and code` warning cleared up.
>
> Weird that there’s a failure on Bookworm with Meson [1] (pg_regress diffs [2]) but not Bookworm with Configure [3]. Collation issue, perhaps?

David Johnson noticed that this build is 32-bit. I looked at the split_path function and after trying a couple of things, realized that it was passing an int8 when the SQL function in Marlena.c passes an int4. This change got the test passing in my clone (indentation reduced):

Occasionally I've noticed myself some inconsistencies wrt to compiler warnings between meson & make . 
But cirrus seems generally happy now https://cirrus-ci.com/build/4964687915253760 

To recap so far; 

- I like your changes and renames on the parser/lexer; it indeed looks much cleaner now and will help with future improvements.
- I also like the addition of executeStringInternalMethod ; it'll help us add more stuff in the future (reminder that for the original patch I implemented the methods I'd like more, but string operations are quite more).

- AFAICT no test cases / results have changed with your versions; is this correct ?

В списке pgsql-hackers по дате отправления: