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 1tDtJd-003sT8-B6 for pgsql-bugs@arkaria.postgresql.org; Wed, 20 Nov 2024 22:36:53 +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 1tDtJb-009s9P-H7 for pgsql-bugs@arkaria.postgresql.org; Wed, 20 Nov 2024 22:36:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tDtJb-009s9H-8I for pgsql-bugs@lists.postgresql.org; Wed, 20 Nov 2024 22:36:51 +0000 Received: from mail-qv1-xf2f.google.com ([2607:f8b0:4864:20::f2f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tDtJY-0030Xs-TN for pgsql-bugs@lists.postgresql.org; Wed, 20 Nov 2024 22:36:50 +0000 Received: by mail-qv1-xf2f.google.com with SMTP id 6a1803df08f44-6d41ac03343so2423626d6.0 for ; Wed, 20 Nov 2024 14:36:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732142207; x=1732747007; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=JnMcUFkWQpyO14J4O13R5rZfg4656f6KsriAfNJsTrE=; b=iNrMPSfq2TwyETckYMvHjiNK9mARHUDQzFrSn7E7LiYeP5hXgwUs88btN5FTEM11zj eZ3YeOYxWtjGZiaL01foDm2fyNH5zg1xBvT/4izGvzLAi7euInahlINk0VyFHc360qL9 X/uz4APMmKeFf1waMWnZpMkcHxiQ/kENw07KPY6snfEJ9Fwl35Rkmbkr4cbDhxXnNC2l 0dcAZo0JfqLlgK7EommAiPRq0/TjGfk3RGx9zP5hP8j/PrEgM8m0Rz0hwteJCzzaQI4y nQ78CybjsHdgv0p87NrBhLH/djOeAttG4Au1xQ6AiZPJrl90g8Erg0jd5v04SxjlGw2M 0gCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732142207; x=1732747007; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=JnMcUFkWQpyO14J4O13R5rZfg4656f6KsriAfNJsTrE=; b=KYsegeqmk2yy1xUkfLiLltJB66rSDLIz/LgPsLyVCSGrlV6tF5/Tk5PZS8Jhg6oGPo EaBufs0iVg3W8Z5ijv1Bf3uGxONFUKF2Lsq+Qszeyg5LdodLDXEWXXK3YPMwsBANvXPc w5YOIph8+HC8aXX3xkMxESkxp7xQ+w61Wk2w0AHv806oUhlwgbk/e+Oxp8d4LkvvlU7a 3IbSbiI10VNjfsspPudHxMdwFprWngeDU8fweJE2PxejuB/z69Sc57dQv9pPha1SFtgn ttIHWbTo9Oy8FW771VKPu7l7+E50qZt3rCv0UG04GPqbIDfnqaDh7XVzvHnjWUagP7th +GEA== X-Forwarded-Encrypted: i=1; AJvYcCVW5pIGGs5LjIEIDtLxonwL6GJkz6hjAj4v76hdYbyswKuLN9/zJubMQQRONZRJ7KpZpOU4KKNv1z7Y@lists.postgresql.org X-Gm-Message-State: AOJu0YyZOdryOh/NQLMtpS5053DR35AcWa+R2MsvEzuA9C1no7fLKVGU XMc4tnMzEC3gfG7u2YpWeZrj4SolAC9mNubdmEE/w33jrCxL/y8L X-Google-Smtp-Source: AGHT+IHZ6tiD7lEADO6vaQX/xUn2N7vDXZZrAij/U6N+8bjhIoW4Csv33j6Ju3bv9SSrLfD8zJXOEA== X-Received: by 2002:ad4:5aa1:0:b0:6d4:1d7e:bc72 with SMTP id 6a1803df08f44-6d442445d4bmr19324156d6.12.1732142206953; Wed, 20 Nov 2024 14:36:46 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-6d4380b35basm15854836d6.3.2024.11.20.14.36.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Nov 2024 14:36:46 -0800 (PST) Date: Wed, 20 Nov 2024 16:36:44 -0600 From: Nathan Bossart To: Tom Lane Cc: adam@labkey.com, Bertrand Drouvot , 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: <3796535.1732044807@sss.pgh.pa.us> <3976665.1732057784@sss.pgh.pa.us> <75265.1732076593@sss.pgh.pa.us> <154104.1732118090@sss.pgh.pa.us> <158506.1732120196@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="wbBTLOUlkNvEbG0J" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --wbBTLOUlkNvEbG0J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Here is a draft patch that seems to work with some simple tests. I've yet to look into the role name side of things. -- nathan --wbBTLOUlkNvEbG0J Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="v1-0001-attempt-multibyte-aware-truncation-of-database-na.patch"