Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q1SfY-0007Lf-Gf for pgsql-bugs@arkaria.postgresql.org; Tue, 23 May 2023 14:07:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1q1SfX-0004xe-FM for pgsql-bugs@arkaria.postgresql.org; Tue, 23 May 2023 14:07:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q1SfX-0004xU-7E for pgsql-bugs@lists.postgresql.org; Tue, 23 May 2023 14:07:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q1SfT-001SxF-6f for pgsql-bugs@lists.postgresql.org; Tue, 23 May 2023 14:07:18 +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 34NE7CIt909620; Tue, 23 May 2023 10:07:13 -0400 From: Tom Lane To: Alexey Kachalin cc: pgsql-bugs@lists.postgresql.org Subject: Re: Prepared SQL name collision. The name implicitly is truncated by NAMEDATALEN In-reply-to: References: Comments: In-reply-to Alexey Kachalin message dated "Tue, 23 May 2023 08:00:11 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <909618.1684850832.1@sss.pgh.pa.us> Date: Tue, 23 May 2023 10:07:12 -0400 Message-ID: <909619.1684850832@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Alexey Kachalin writes: > Prepared SQL name collision. The name implicitly is truncated by > NAMEDATALEN This is not a bug. You exceeded a well-documented implementation limit, and the response is as documented. > Is it possible to know which value was used at compilation time from > application code? You can do =# show max_identifier_length; max_identifier_length ----------------------- 63 (1 row) or various equivalent ways of inspecting that parameter. regards, tom lane