pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jonathan Gonzalez V. <jonathan@abdiel.eu>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: locale / encoding / meson cleanup
Date: Wed, 26 Aug 2026 14:18:31 +0200
Message-ID: <87wltd2hyg.fsf@abdiel.eu> (raw)
In-Reply-To: <a40b19da-9a02-47b4-8afd-2bbbde8db1e8@dunslane.net>
References: <a40b19da-9a02-47b4-8afd-2bbbde8db1e8@dunslane.net>

Hello!

Andrew Dunstan <andrew@dunslane.net> writes:
> ...
> 1. test_regex_utf8 depends on the ctype, not just the encoding
> ...

I never run this test so it was a big surprise to me that after this:

PG_TEST_INITDB_EXTRA_OPTS='--no-locale --encoding=UTF8' meson test -C build/ --suite setup  --suite test_regex

The error was there crystal clear! Tested patched 0001 and 0002 and now
the test pass and works perfectly on riscv64 and x86.

>
> 2. collate.linux.utf8 has never run on a meson build
>
> While checking whether anything else fails in a C+UTF8 database, I found that
> collate.linux.utf8 wasn't running on my build at all. Its guard includes
>
>     version() !~ 'linux-gnu'
>
> and meson builds don't produce that string:
>
>     meson     PostgreSQL 20devel on aarch64-linux, compiled by gcc-13.3.0,
> 64-bit
>     autoconf  PostgreSQL 20devel on aarch64-unknown-linux-gnu, compiled by gcc
> ...

I was able to reproduce the same issue with a riscv64 and x86, the patch
0003 was enough to fix the issue.

I've run a long test and found some errors, not related to this patch,
but will be triggered with the options:

PG_TEST_INITDB_EXTRA_OPTS='--no-locale --encoding=UTF8'

Don't know if are useful information but here is some information.

Test failed:

222/403 pg_dump - postgresql:pg_dump/010_dump_connstr                                   ERROR            14.13s   exit status 4
253/403 scripts - postgresql:scripts/200_connstr                                        ERROR             4.18s   exit status 3
294/403 subscription - postgresql:subscription/005_encoding                             ERROR             8.16s   exit status 4

The tests failed because it's passing to initdb the `--encoding`
option twice and `--locale` and then `--no-locale` option, which is
weird, but that's clearly and error because of the extra options, not
related, to the patch, but it could be an issue in the farm since these
test are forcing a `--locale` and `--encoding` option. I think that it's
worth to keep these test in mind when testing

Regards,
--
Jonathan Gonzalez V.
EDB
https://www.enterprisedb.com






view thread (8+ messages)  latest in thread

Message-ID: <87wltd2hyg.fsf@abdiel.eu>
Permalink:  ../87wltd2hyg.fsf@abdiel.eu/
Also on:    postgresql.org/message-id/87wltd2hyg.fsf@abdiel.eu

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: jonathan@abdiel.eu, andrew@dunslane.net
  Subject: Re: locale / encoding / meson cleanup
  In-Reply-To: <87wltd2hyg.fsf@abdiel.eu>
  References: <a40b19da-9a02-47b4-8afd-2bbbde8db1e8@dunslane.net> <87wltd2hyg.fsf@abdiel.eu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox