Received: from bugs.unl.edu.ar (bugs.unl.edu.ar [168.96.132.208]) by postgresql.org (Postfix) with ESMTP id E88E2475E1E for ; Fri, 22 Mar 2002 06:17:27 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by bugs.unl.edu.ar (Postfix) with ESMTP id 911E3FDD3; Fri, 22 Mar 2002 08:18:28 -0300 (GMT) Received: from there (bugs [168.96.132.208]) by bugs.unl.edu.ar (Postfix) with SMTP id 8D684FA1D; Fri, 22 Mar 2002 08:18:27 -0300 (GMT) Content-Type: text/plain; charset="iso-8859-1" From: =?iso-8859-1?q?Mart=EDn=20Marqu=E9s?= To: "Ross J. Reedstrom" , Vincent Stoessel Subject: Re: Migrating a MySQL schema with an enum Date: Fri, 22 Mar 2002 08:18:23 -0300 X-Mailer: KMail [version 1.3.2] Cc: SQL References: <3C991E29.C90559F4@heart.com.au> <20020321113145.E84DBFA1D@bugs.unl.edu.ar> <20020321160227.GC9471@rice.edu> In-Reply-To: <20020321160227.GC9471@rice.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020322111827.8D684FA1D@bugs.unl.edu.ar> X-Virus-Scanned: by AMaViS snapshot-20011031 X-Archive-Number: 200203/286 X-Sequence-Number: 7165 On Jue 21 Mar 2002 13:02, Ross J. Reedstrom wrote: > On Thu, Mar 21, 2002 at 09:40:42AM -0500, Vincent Stoessel wrote: > > Mart?n Marqu?s wrote: > > >On Mi? 20 Mar 2002 20:41, you 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. > > > > > >I had to migrate a DB from MySQL to PostgreSQL that had some enum as > > > field data type (I can't believe that something like that exists) > > > > > > > > another shot at the mysql db. > > Please don't forget that PG also has non standard data types > > available. > > Your pique at seeing what you took as an unfair shot at another db caused > you to be blinded to what Martin was pointing out. In this case, MySQL has > a gratutiously non-standard feature: the equivalent CHECK constraint is > only a few more characters, and easier to read (IMHO) Thanks Ross, I was just about to say the same thing. Why had an unstandard data type, whn you can have it SQL-standard. I think that the problem MySQL has is CHECK. Saludos... :-) -- Porqué usar una base de datos relacional cualquiera, si podés usar PostgreSQL? ----------------------------------------------------------------- Martín Marqués | mmarques@unl.edu.ar Programador, Administrador, DBA | Centro de Telematica Universidad Nacional del Litoral -----------------------------------------------------------------