pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <pgsql@j-davis.com>
To: Noah Misch <noah@leadboat.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Identifier downcase change for LATIN1, in v19
Date: Tue, 01 Sep 2026 11:51:02 -0700
Message-ID: <93adc3da79b248f4da1b27b3da4a3a0a5d7008b1.camel@j-davis.com> (raw)
In-Reply-To: <20260826225510.10.noahmisch@microsoft.com>
References: <20260826225510.10.noahmisch@microsoft.com>

On Wed, 2026-08-26 at 15:55 -0700, Noah Misch wrote:

>   Commit 87b2968
> "downcase_identifier(): use method table from locale provider"
> changed this.

Thank you for the report. Yes, that was an unintentional behavior
change for provider=builtin, locale=C, single-byte encoding, and a
non-C LC_CTYPE setting.

I think the right fix is to just revert 0a90df58cf & 87b2968df0. Those
were intended to be cleanup to reduce the dependency on the LC_CTYPE
setting, but if we need the dependency for all three providers, then
those commits didn't move us any closer to that goal.

> Opus 5 found that, under LATIN1, psql running "\d TABLENAME" can
> find a
> different table than the one "SELECT * FROM TABLENAME" reads.

To be pedantic, that can happen regardless. There's no guarantee that
the client's libc and the server's libc agree.

Regards,
	Jeff Davis







view thread (3+ messages)  latest in thread

Message-ID: <93adc3da79b248f4da1b27b3da4a3a0a5d7008b1.camel@j-davis.com>
Permalink:  ../93adc3da79b248f4da1b27b3da4a3a0a5d7008b1.camel@j-davis.com/
Also on:    postgresql.org/message-id/93adc3da79b248f4da1b27b3da4a3a0a5d7008b1.camel@j-davis.com

 · 

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: pgsql@j-davis.com, noah@leadboat.com
  Subject: Re: Identifier downcase change for LATIN1, in v19
  In-Reply-To: <93adc3da79b248f4da1b27b3da4a3a0a5d7008b1.camel@j-davis.com>
  References: <20260826225510.10.noahmisch@microsoft.com> <93adc3da79b248f4da1b27b3da4a3a0a5d7008b1.camel@j-davis.com>

* 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