From: Paul Förster <paul.foerster@gmail.com>
To: Joao Miguel Ferreira <joao.miguel.c.ferreira@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: identifier will be truncated
Date: Mon, 8 Feb 2021 17:45:09 +0100
Message-ID: <9DE48F36-C0CB-4770-985F-0AF5E113737E@gmail.com> (raw)
In-Reply-To: <CALyyT7RPgh69OmdF1LN4w=pYZa_0NYP0qanB74CC8rweZ+zOBg@mail.gmail.com>
References: <CALyyT7RPgh69OmdF1LN4w=pYZa_0NYP0qanB74CC8rweZ+zOBg@mail.gmail.com>
Hi Joao,
> On 08. Feb, 2021, at 17:39, Joao Miguel Ferreira <joao.miguel.c.ferreira@gmail.com> wrote:
>
> 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.
this is an indication that your object name is longer than 63 characters, which is a hard coded limit.
You have two options:
a) compile the PostgreSQL software from source and increase that limit (which I wouldn't recommend), or
b) use shorter object names (table-, view-, sequence-, column-, whatever names) with a maximum length of 63 characters.
Cheers,
Paul
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: paul.foerster@gmail.com, joao.miguel.c.ferreira@gmail.com
Subject: Re: identifier will be truncated
In-Reply-To: <9DE48F36-C0CB-4770-985F-0AF5E113737E@gmail.com>
References: <CALyyT7RPgh69OmdF1LN4w=pYZa_0NYP0qanB74CC8rweZ+zOBg@mail.gmail.com> <9DE48F36-C0CB-4770-985F-0AF5E113737E@gmail.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