Re: column name length

From: Ian Barwick <barwick(at)gmx(dot)net>
To: Felipe Nascimento <Felipe(dot)Nascimento(at)multivalor(dot)com(dot)br>, "'pgsql-admin(at)postgresql(dot)org'" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: column name length
Date: 2002-03-10 08:38:49
Message-ID: 200203100838.JAA28877@post.webmailer.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Saturday 09 March 2002 01:21, Felipe Nascimento wrote:
> Is there a max length (number of characters) to column names??
>
> I received the following:
> identifier "petb_convidado_partida_participante" will be truncated to
> "petb_convidado_partida_particip"
>
> Tks
> Felipe

system identifiers are limited in the default configuration
to 31 characters, as has been pointed out, you will need to
rebuild PostgreSQL to change this value.

HOWTO:

in the file

src/include/postgres_ext.h

change NAMEDATALEN to your desired value + 1
(current setting is 32, which gives a maximum length of 31
characters).

Changing NAMEDATALEN to a greater value is on the todo-list, see:

http://archives.postgresql.org/pgsql-general/2002-01/msg00941.php

Ian Barwick

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Dave 2002-03-10 14:11:11 Postgres not starting at boot(FreeBSD) - startup script not releasing
Previous Message egon.phillips 2002-03-09 18:36:37 IP Address 0.0.0.0