Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 22B886503F4 for ; Sat, 26 Jul 2008 18:44:42 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 86279-05 for ; Sat, 26 Jul 2008 18:44:28 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id DBD1C6503A9 for ; Sat, 26 Jul 2008 18:44:30 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id m6QLiOSg004192; Sat, 26 Jul 2008 17:44:24 -0400 (EDT) To: "David Andersen" cc: pgsql-performance@postgresql.org Subject: Re: Using ENUM with huge NAMEDATALEN In-reply-to: References: Comments: In-reply-to "David Andersen" message dated "Sat, 26 Jul 2008 23:22:09 +0200" Date: Sat, 26 Jul 2008 17:44:24 -0400 Message-ID: <4191.1217108664@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200807/228 X-Sequence-Number: 30828 "David Andersen" 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