pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Andersen <david@andersen.gs>
Cc: pgsql-performance@postgresql.org
Subject: Re: Using ENUM with huge NAMEDATALEN
Date: Sat, 26 Jul 2008 17:44:24 -0400
Message-ID: <4191.1217108664@sss.pgh.pa.us> (raw)
In-Reply-To: <c6bf5b380807261422i77ed5b3evf55da6891e2e4170@mail.gmail.com>
References: <c6bf5b380807261422i77ed5b3evf55da6891e2e4170@mail.gmail.com>

"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



view thread (5+ messages)  latest in thread

Message-ID: <4191.1217108664@sss.pgh.pa.us>
Permalink:  ../4191.1217108664@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4191.1217108664@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, david@andersen.gs
  Subject: Re: Using ENUM with huge NAMEDATALEN
  In-Reply-To: <4191.1217108664@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