From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark McEahern <marklists@mceahern.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: configure datatype name > 31?
Date: Fri, 03 May 2002 15:36:47 -0400
Message-ID: <15198.1020454607@sss.pgh.pa.us> (raw)
In-Reply-To: <NCBBLFCOHHDIKCAFGCFBEECAKOAA.marklists@mceahern.com>
References: <NCBBLFCOHHDIKCAFGCFBEECAKOAA.marklists@mceahern.com>
"Mark McEahern" <marklists@mceahern.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, marklists@mceahern.com
Subject: Re: configure datatype name > 31?
In-Reply-To: <15198.1020454607@sss.pgh.pa.us>
References: <NCBBLFCOHHDIKCAFGCFBEECAKOAA.marklists@mceahern.com> <15198.1020454607@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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