| From: | Jeff Davis <pgsql(at)j-davis(dot)com> |
|---|---|
| To: | Andres Freund <andres(at)anarazel(dot)de> |
| Cc: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Álvaro Herrera <alvherre(at)kurilemu(dot)de>, "Masashi Kamura (Fujitsu)" <kamura(dot)masashi(at)fujitsu(dot)com>, "'pgsql-hackers(at)lists(dot)postgresql(dot)org'" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Crash issue in PG18.5 regression |
| Date: | 2026-08-20 18:49:10 |
| Message-ID: | fe35594a54923c94142390dabb365b737c581f2a.camel@j-davis.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Tue, 2026-08-18 at 14:36 -0400, Andres Freund wrote:
> FWIW, I think this is actually a bug, it just turns out that we don't
> know of
> any callers that hit it.
Committed.
Also committed the change to support collate_is_c always, for
consistency with ctype_is_c.
>
> > +/*
> > + * pg_strtitle()
> > + *
> > + * Convert src to titlecase, and return the result length (not
> > including
> > + * terminating NUL).
>
> Might not hurt to actually say what titlecase and folded strings are.
Attached follow-up patch that includes explanatory comments, and adds a
couple tiny SQL tests to cover the new examples.
>
> Sometimes that's unavoidable, because you need a server configured in
> a
> specific way, the tests take a good while and should therefore run
> concurrently, or such. But that shouldn't be the case her. Can't you
> stuff
> this into regress.c or such?
Attached new test patch that just adds it to regress.c and calls it
from misc_functions.sql.
> Other than that complaint, I'd probably backpatch this. Seems
> unlikely to be
> flappy or such?
Agreed. It would have caught 27e2afb492.
Thank you for looking at it.
Regards,
Jeff Davis
| Attachment | Content-Type | Size |
|---|---|---|
| v3.pg20-0001-Add-C-test-function-for-pg_locale.h-APIs.patch | text/x-patch | 8.4 KB |
| v3.pg20-0002-pg_locale.c-add-explanatory-comments-and-tes.patch | text/x-patch | 7.9 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alexander Lakhin | 2026-08-20 19:00:00 | Test 030_pager.pl might fail due to race on set_winsize |
| Previous Message | Andrey Borodin | 2026-08-20 18:48:55 | Re: Fix XLogFileReadAnyTLI silently applying divergent WAL from wrong timeline |