Re: Name limit to 31 chars - Mailing list pgsql-general

From Einar Karttunen
Subject Re: Name limit to 31 chars
Date
Msg-id 20020201123751.GB15160@shellak.helsinki.fi
Whole thread Raw
In response to Name limit to 31 chars  (Oscar Pérez <javalotodo@iespana.es>)
List 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


pgsql-general by date:

Previous
From: Fritz Lehmann-Grube
Date:
Subject: ORDER BY in \dt+ ?
Next
From: Picrate
Date:
Subject: trigger-procedure without plpgsql