Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIFzG-00DDzD-SL for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Dec 2024 23:37:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tIFzD-004mhR-NQ for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Dec 2024 23:37:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIFzD-004mhI-Eb for pgsql-bugs@lists.postgresql.org; Mon, 02 Dec 2024 23:37:52 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIFzB-000jQO-PG for pgsql-bugs@lists.postgresql.org; Mon, 02 Dec 2024 23:37:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2024011501; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description; bh=VVuvF3JLLFa78oHW6Z0YfMSbNRtVjleUm8zFWGdajYM=; b=EJgLD bLa7WEIkQk+/RFQr7J47ZYTaAYFvlgj2WVhRoNDPYfSeyZsmIkS6DwU5M4qZQI5fuIgXVncU3+OHa xQTEjXOTbLvI3tIAu4k7vEnm3+3VqDFKtbh2wsCoWdjMXffU8cecfjSELwlzV/OzNPQduoDStzLcf hIzQ7GLqUKBEtEOsj9mP7CqMku3nww59883wOGVnl1OgI09CujrNHwMj+2Danwoat4xLE4Npu3EEp +g8osVrdb1KniZXquC+3JauH3nBZZx1QSCQ/UWCXkzPrVhExYr1J35z8S5f2BNWKutvzvygNBelHb WJr8UHKXroPJmybY9vuWsghd7/D3Q==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1tIFz9-004vyc-0Z; Mon, 02 Dec 2024 18:37:47 -0500 Date: Mon, 2 Dec 2024 18:37:47 -0500 From: Bruce Momjian To: Tom Lane Cc: Thomas Munro , Bertrand Drouvot , Nathan Bossart , adam@labkey.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18711: Attempting a connection with a database name longer than 63 characters now fails Message-ID: References: <1865227.1732723416@sss.pgh.pa.us> <2094158.1732812306@sss.pgh.pa.us> <1692919.1733181379@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1692919.1733181379@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Dec 2, 2024 at 06:16:19PM -0500, Tom Lane wrote: > Bruce Momjian writes: > > I am concerned we are going to get a lot of complaints about this > > restricted change because most people are happily using whatever > > encoding they want, and as long as they don't hit the 64-byte limit, > > they are fine. Are people going to be happy with this restriction just > > to keep 64+-byte identifiers safe? > > That's a remarkably rose-tinted view of the current state of affairs. > Reality is that using multiple encodings in shared catalogs just plain > doesn't work very well. Even something as simple as "select datname > from pg_database" is likely to give garbage if there are entries in > encodings that don't match your current database's encoding. What > Thomas is proposing is to formalize and then enforce the two usage > patterns that we know work okay. > > Moreover, the proposal also includes a third backwards-compatibility > mode that will let anyone who does like the current approach to keep > using it. So I'm unclear on why you think there's a big downside. I have not heard of anyone complaining about the problem of viewing the shared catalog columns so I didn't consider that benefit. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com When a patient asks the doctor, "Am I going to die?", he means "Am I going to die soon?"