Re: configure datatype name > 31?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Mark McEahern" <marklists(at)mceahern(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: configure datatype name > 31?
Date: 2002-05-03 19:36:47
Message-ID: 15198.1020454607@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Mark McEahern" <marklists(at)mceahern(dot)com> writes:
> Is there a way to configure PostgreSQL to make the name field larger?

Edit src/include/postgres_ext.h to change NAMEDATALEN (keep it a
multiple of 4). Build, install, initdb.

In current releases there are client-side dependencies on NAMEDATALEN,
so you should take care to recompile *everything*. We are working to
remove all dependencies on NAMEDATALEN in the standard clients and
client libraries for 7.3, though.

According to recent tests there's a measurable performance hit for
large values of NAMEDATALEN, so I wouldn't recommend making it bigger
than about 100 ...

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Paul M Foster 2002-05-03 20:08:35 Re: Foxpro
Previous Message Nick Fankhauser 2002-05-03 19:07:32 Re: ALTER TABLE for field modify...