pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Joao Miguel Ferreira <joao.miguel.c.ferreira@gmail.com>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: identifier will be truncated
Date: Mon, 8 Feb 2021 08:41:50 -0800
Message-ID: <89903750-0ead-9461-1197-ae601461898c@aklaver.com> (raw)
In-Reply-To: <CALyyT7RPgh69OmdF1LN4w=pYZa_0NYP0qanB74CC8rweZ+zOBg@mail.gmail.com>
References: <CALyyT7RPgh69OmdF1LN4w=pYZa_0NYP0qanB74CC8rweZ+zOBg@mail.gmail.com>

On 2/8/21 8:39 AM, Joao Miguel Ferreira wrote:
> Hello all,
> 
> I'm running unit/integration tests on a pg based application. I recently 
> started getting the following indication on the test suite pg client:
> 
> NOTICE:  identifier 
> "y1972_1004_vat_periodic_declaration_suppliers_lines_dupl_c24_liq" will 
> be truncated to 
> "y1972_1004_vat_periodic_declaration_suppliers_lines_dupl_c24_li"
> 
> Please advise on what I should do about it or if this might be a 
> potential problem that I should address.

https://www.postgresql.org/docs/12/sql-syntax-lexical.html

"The system uses no more than NAMEDATALEN-1 bytes of an identifier; 
longer names can be written in commands, but they will be truncated. By 
default, NAMEDATALEN is 64 so the maximum identifier length is 63 bytes. 
If this limit is problematic, it can be raised by changing the 
NAMEDATALEN constant in src/include/pg_config_manual.h."

> 
> Thank you
> Joao
> 
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (3+ messages)  latest in thread

Message-ID: <89903750-0ead-9461-1197-ae601461898c@aklaver.com>
Permalink:  ../89903750-0ead-9461-1197-ae601461898c@aklaver.com/
Also on:    postgresql.org/message-id/89903750-0ead-9461-1197-ae601461898c@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, joao.miguel.c.ferreira@gmail.com
  Subject: Re: identifier will be truncated
  In-Reply-To: <89903750-0ead-9461-1197-ae601461898c@aklaver.com>
  References: <CALyyT7RPgh69OmdF1LN4w=pYZa_0NYP0qanB74CC8rweZ+zOBg@mail.gmail.com> <89903750-0ead-9461-1197-ae601461898c@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox