pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ian Barwick <barwick@gmx.net>
To: Felipe Nascimento <Felipe.Nascimento@multivalor.com.br>
To: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: column name length
Date: Sun, 10 Mar 2002 09:38:49 +0100
Message-ID: <200203100838.JAA28877@post.webmailer.de> (raw)
In-Reply-To: <A1D265B81E168745B876193655F97F8D0181CE@mvescexc01.esc.multivalor.com.br>
References: <A1D265B81E168745B876193655F97F8D0181CE@mvescexc01.esc.multivalor.com.br>

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



view thread (4+ messages)

Message-ID: <200203100838.JAA28877@post.webmailer.de>
Permalink:  ../200203100838.JAA28877@post.webmailer.de/
Also on:    postgresql.org/message-id/200203100838.JAA28877@post.webmailer.de

 · 

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-admin@postgresql.org
  Cc: barwick@gmx.net, Felipe.Nascimento@multivalor.com.br
  Subject: Re: column name length
  In-Reply-To: <200203100838.JAA28877@post.webmailer.de>
  References: <A1D265B81E168745B876193655F97F8D0181CE@mvescexc01.esc.multivalor.com.br> <200203100838.JAA28877@post.webmailer.de>

* 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