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 1tDbgX-001x8A-AU for pgsql-bugs@arkaria.postgresql.org; Wed, 20 Nov 2024 03:47:21 +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 1tDbgV-001oqB-UI for pgsql-bugs@arkaria.postgresql.org; Wed, 20 Nov 2024 03:47:19 +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 1tDbgV-001opV-Lf for pgsql-bugs@lists.postgresql.org; Wed, 20 Nov 2024 03:47:19 +0000 Received: from mail-vk1-xa30.google.com ([2607:f8b0:4864:20::a30]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tDbgQ-002oOf-Hv for pgsql-bugs@lists.postgresql.org; Wed, 20 Nov 2024 03:47:16 +0000 Received: by mail-vk1-xa30.google.com with SMTP id 71dfb90a1353d-50d5d4ef231so721103e0c.0 for ; Tue, 19 Nov 2024 19:47:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732074432; x=1732679232; 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=pJNmK2DmP6dg8gFuEJi47IZGr5+XBvd4GISIrb6mN1U=; b=IgHeIvs3Y7uTTRcxOoLF65X75cJYGA2VtSqJAAlIa6Mv8Y1Ku9B7a9iBXTSbIojYbw NAW4bO+0zSzndgH7Z38zZoL3QKV97X8FfWDYAgR3Uq3csL3E3AZDbHpGS3d3QwLaKM9L 2WS+I4dBR3f9FmfAfdOJbddsrCzx01k69MubIhd4qOzKU7jnZRDwirA0mY55UW1i9TKP zKEqxQszgRI1MJIawDInxDx+auAvWy/bj0PfGOuiVs05w++7ETPoSikHux/SsoqCdmqD laFrfeto4kGGX0S/28v31FAlHpvO51k2wuvd+2wR+id0V9h1VxzUqcJhw+ztjrCEVFwU J8wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732074432; x=1732679232; 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=pJNmK2DmP6dg8gFuEJi47IZGr5+XBvd4GISIrb6mN1U=; b=XjL+BJO9ATCTZ1STvUpOjbrOXSxOBgS3MpISVEREif0k+dlMyGnWC/UiQzl3zE9EwU +0x5SAocRqBMV2kWNJJZa4mwjPrvx8uwJV+/nyEIDzZeudhHR+jpOwOGfJQXNLr1Ai4p 9W8NArfGi1kk/cdLfoFPVdbzqLA25W3WENdenKIBO+4hRgiYNxzisg4ZD62+XRHWlCUf 6EewVIQC5H5JRc8x5b7pviGwGB79+wxCK/YLd4xJPFvSsniQJAzQ3Pjmfg3oiNU+hNEJ N+u5UIzSN/Eujx8+3mbDqfzN0m+GVTnuXhGVWlturZbzRAQQKSu/lIvl7TITz7mdWs9S y6YA== X-Forwarded-Encrypted: i=1; AJvYcCVEGvn4r3RER3GPBbDfI/I3YcNg4ZJNzlwCMpXxLDLZ7zKeHnryrU19ofzqxwLFmY4KPHh7Swz1gyww@lists.postgresql.org X-Gm-Message-State: AOJu0YwfvvZ6InKd/SPRsLQ8YUt8Nn/eOYrPe0ijNuIqU4eIIPa9ojCR QZ+Y9bR/wxROMVZRdVKMuNCJ48s8HMXWqIPRjSViqGDNvD1GUbVP X-Gm-Gg: ASbGnct0uBW5X6xgi7c6+ehdD+3dmawJAhLj1tE++c9MGeBVINFN9YI8tDLtA20YiBo 2/QmlKst0/AZEGXGSRzzzX0n7AYiGaoURKsRkuQRyslPYPEduhS4a668syisZtwRCnPOczExN+K bNtFjLvioKcrey8qy0UOkGqFJ+i4Zr5ZIHB2929qodbeRgBtbRB7xL33pbmXDBeIQXj5+IC76nv UO7UlXaG5evwkQLaKAQd8k2FPPG0NsDRZqrTwpTtPD+HHUTLTx6/lgQ2o/mx9tUXVOOC8cZD52D VSB/yxM4IAKX5IX68BVIIr8HguGrZpfY2v9ho/82 X-Google-Smtp-Source: AGHT+IFtkCe3x0HWRL5tcnV7beQTxvBL0cYTEgKANz0d/zBZ2E+2KfhGtmtvxSn9DQr66Wdmewwrhw== X-Received: by 2002:a05:6122:1da4:b0:50d:5a12:9436 with SMTP id 71dfb90a1353d-514cf8838d9mr1641435e0c.3.1732074432627; Tue, 19 Nov 2024 19:47:12 -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-6d4380db196sm5070436d6.50.2024.11.19.19.47.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Nov 2024 19:47:11 -0800 (PST) Date: Tue, 19 Nov 2024 21:47:09 -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: <18711-7503ee3e449d2c47@postgresql.org> <3072825.1731866414@sss.pgh.pa.us> <3796535.1732044807@sss.pgh.pa.us> <3976665.1732057784@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3976665.1732057784@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Nov 19, 2024 at 06:09:44PM -0500, Tom Lane wrote: > Also, we could bypass the multiple lookups unless both the > NAMEDATALEN-1'th and NAMEDATALEN-2'th bytes are non-ASCII, which > should be rare enough to make it not much of a performance issue. I'm admittedly not an expert in the multi-byte code, but since there are encodings like LATIN1 that use a byte per character, don't we need to do multiple lookups any time the NAMEDATALEN-1'th byte is non-ASCII? > One annoying point is that we also need this for role lookup. Right. -- nathan