Re: Name limit to 31 chars

From: Einar Karttunen <ekarttun(at)cs(dot)helsinki(dot)fi>
To: Oscar Pérez <javalotodo(at)iespana(dot)es>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Name limit to 31 chars
Date: 2002-02-01 12:37:51
Message-ID: 20020201123751.GB15160@shellak.helsinki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 01.02.02 12:54 +0100(+0000), Oscar Pérez wrote:
> Does anybody knows why table and field names are limited to 31 characters?
> Is there any way of changing this?

They are defined with the datatype name which is 32 bytes long.
There is a todo item that will increase the length:

>From http://developer.postgresql.org/todo.php
>Increase identifier length (NAMEDATALEN) if small performance hit,
>perhaps to standard length of 128; change struct pgNotify to use pid
> first, breaks notify API;

- Einar Karttunen

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Holger Krug 2002-02-01 12:40:50 Re: non-overlapping ranges constraint?
Previous Message Fritz Lehmann-Grube 2002-02-01 12:32:54 ORDER BY in \dt+ ?