pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
column name length
4+ messages / 4 participants
[nested] [flat]

* column name length
@ 2002-03-09 00:21 Felipe Nascimento <Felipe.Nascimento@multivalor.com.br>
  2002-03-09 00:33 ` Re: column name length Joe Conway <mail@joeconway.com>
  2002-03-09 16:21 ` Re: column name length Joel Burton <joel@joelburton.com>
  2002-03-10 08:38 ` Re: column name length Ian Barwick <barwick@gmx.net>
  0 siblings, 3 replies; 4+ messages in thread

From: Felipe Nascimento @ 2002-03-09 00:21 UTC (permalink / raw)
  To: pgsql-admin

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

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: column name length
  2002-03-09 00:21 column name length Felipe Nascimento <Felipe.Nascimento@multivalor.com.br>
@ 2002-03-09 00:33 ` Joe Conway <mail@joeconway.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Joe Conway @ 2002-03-09 00:33 UTC (permalink / raw)
  To: Felipe Nascimento <Felipe.Nascimento@multivalor.com.br>; +Cc: pgsql-admin

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
> 

Yes -- it is 31 characters max by default. You can change it, but only 
by modifying the source code and recompiling.

HTH,

Joe




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: column name length
  2002-03-09 00:21 column name length Felipe Nascimento <Felipe.Nascimento@multivalor.com.br>
@ 2002-03-09 16:21 ` Joel Burton <joel@joelburton.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Joel Burton @ 2002-03-09 16:21 UTC (permalink / raw)
  To: Felipe Nascimento <Felipe.Nascimento@multivalor.com.br>; +Cc: pgsql-admin

On Fri, 8 Mar 2002, 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"

32. You can recompile PG if you need more.

-- 

Joel BURTON  |  joel@joelburton.com  |  joelburton.com  |  aim: wjoelburton
Independent Knowledge Management Consultant




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: column name length
  2002-03-09 00:21 column name length Felipe Nascimento <Felipe.Nascimento@multivalor.com.br>
@ 2002-03-10 08:38 ` Ian Barwick <barwick@gmx.net>
  2 siblings, 0 replies; 4+ messages in thread

From: Ian Barwick @ 2002-03-10 08:38 UTC (permalink / raw)
  To: Felipe Nascimento <Felipe.Nascimento@multivalor.com.br>; 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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2002-03-10 08:38 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-03-09 00:21 column name length Felipe Nascimento <Felipe.Nascimento@multivalor.com.br>
2002-03-09 00:33 ` Joe Conway <mail@joeconway.com>
2002-03-09 16:21 ` Joel Burton <joel@joelburton.com>
2002-03-10 08:38 ` Ian Barwick <barwick@gmx.net>

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