table name size

Started by Sridhar N Bamandlapallyalmost 10 years ago4 messagesgeneral
Jump to latest
#1Sridhar N Bamandlapally
sridhar.bn1@gmail.com

Hi

how to create table name with size, the limitation we are facing is 63
length

these are dynamic tables created from application

issue is:
we cannot suggest/tell client to change NAMEDATALEN constant in
src/include/pg_config_manual.h

do we have any other option,

please

Thanks
Sridhar
OpenText

#2David G. Johnston
david.g.johnston@gmail.com
In reply to: Sridhar N Bamandlapally (#1)
Re: table name size

On Mon, Jun 13, 2016 at 7:21 AM, Sridhar N Bamandlapally <
sridhar.bn1@gmail.com> wrote:

Hi

how to create table name with size, the limitation we are facing is 63
length

these are dynamic tables created from application

issue is:
we cannot suggest/tell client to change NAMEDATALEN constant in
src/include/pg_config_manual.h

do we have any other option,

​Ensure that the application's algorithm for generating names doesn't
generate names that exceed 63 characters.​

​If you're asking if there a runtime setting to control this the answer is
no.​

​David J.​

#3Sridhar N Bamandlapally
sridhar.bn1@gmail.com
In reply to: David G. Johnston (#2)
Re: table name size

Hi

Is there any specific reason not releasing any version with "NAMEDATALEN 255"
in file src/include/pg_config_manual.h ?

this will really nice if we do with "NAMEDATALEN 255" src/include/pg_config_
manual.h

Please

Thanks
Sridhar
OpenText

On Mon, Jun 13, 2016 at 5:40 PM, David G. Johnston <
david.g.johnston@gmail.com> wrote:

Show quoted text

On Mon, Jun 13, 2016 at 7:21 AM, Sridhar N Bamandlapally <
sridhar.bn1@gmail.com> wrote:

Hi

how to create table name with size, the limitation we are facing is 63
length

these are dynamic tables created from application

issue is:
we cannot suggest/tell client to change NAMEDATALEN constant in
src/include/pg_config_manual.h

do we have any other option,

​Ensure that the application's algorithm for generating names doesn't
generate names that exceed 63 characters.​

​If you're asking if there a runtime setting to control this the answer is
no.​

​David J.​

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Sridhar N Bamandlapally (#3)
Re: table name size

Sridhar N Bamandlapally <sridhar.bn1@gmail.com> writes:

Is there any specific reason not releasing any version with "NAMEDATALEN 255"
in file src/include/pg_config_manual.h ?

It would bloat the system catalogs by a rather substantial amount, as well
as in-memory images of those catalogs (catcaches). Seeing that the field
demand for this is next to nil, we're not very likely to do it just for
nominal standards compliance. But you're free to build your own copy that
way if you like --- that's why it's configurable.

BTW, you might as well set it to 256 not 255: alignment considerations
mean that the odd byte would just be wasted in most or all of the
catalogs.

regards, tom lane

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general