From: David Andersen <david@andersen.gs>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: Using ENUM with huge NAMEDATALEN
Date: Sat, 26 Jul 2008 23:48:50 +0200
Message-ID: <c6bf5b380807261448h65aac228i112cdca380bf4b4@mail.gmail.com> (raw)
In-Reply-To: <4191.1217108664@sss.pgh.pa.us>
References: <c6bf5b380807261422i77ed5b3evf55da6891e2e4170@mail.gmail.com>
<4191.1217108664@sss.pgh.pa.us>
Hi Tom,
Thanks a lot for the tip! I will try this. You probably saved be a few days
of work!
Regards,
David
On Sat, Jul 26, 2008 at 11:44 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> "David Andersen" <david@andersen.gs> writes:
> > One of the side tables is text with length of up to 900 characters. My
> > question is whether I could build PostgreSQL with NAMEDATALEN (which
> > controls the max size of Enums) equal to 900?
>
> I wouldn't recommend it. Consider changing pg_enum.enumlabel to type
> TEXT instead.
>
> 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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: david@andersen.gs, tgl@sss.pgh.pa.us
Subject: Re: Using ENUM with huge NAMEDATALEN
In-Reply-To: <c6bf5b380807261448h65aac228i112cdca380bf4b4@mail.gmail.com>
* 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