Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id 0FD5D4758A1 for ; Wed, 20 Mar 2002 18:54:25 -0500 (EST) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g2KNrtM11253; Wed, 20 Mar 2002 18:53:55 -0500 (EST) From: Bruce Momjian Message-Id: <200203202353.g2KNrtM11253@candle.pha.pa.us> Subject: Re: Migrating a MySQL schema with an enum In-Reply-To: <3C991E29.C90559F4@heart.com.au> To: Keith Gray Date: Wed, 20 Mar 2002 18:53:55 -0500 (EST) Cc: SQL X-Mailer: ELM [version 2.4ME+ PL97 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200203/269 X-Sequence-Number: 7148 Keith Gray wrote: > SQL gurus, > > Migrating a MySQL schema with an enum to PostgreSQL, > is there an equivalent type or do I have to declare > another table for "enum" values. You can use another table, or use CHECK constraints to limit the possible values. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026