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 1tIFeV-00DCFZ-7w for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Dec 2024 23:16:27 +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 1tIFeR-004ckm-P9 for pgsql-bugs@arkaria.postgresql.org; Mon, 02 Dec 2024 23:16:24 +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 1tIFeR-004cke-Gb for pgsql-bugs@lists.postgresql.org; Mon, 02 Dec 2024 23:16:24 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tIFeQ-000jHR-0V for pgsql-bugs@lists.postgresql.org; Mon, 02 Dec 2024 23:16:23 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 4B2NGJ3N1692920; Mon, 2 Dec 2024 18:16:19 -0500 From: Tom Lane To: Bruce Momjian 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 In-reply-to: References: <665338.1732306066@sss.pgh.pa.us> <1865227.1732723416@sss.pgh.pa.us> <2094158.1732812306@sss.pgh.pa.us> Comments: In-reply-to Bruce Momjian message dated "Mon, 02 Dec 2024 18:00:53 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1692918.1733181379.1@sss.pgh.pa.us> Date: Mon, 02 Dec 2024 18:16:19 -0500 Message-ID: <1692919.1733181379@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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. regards, tom lane