pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ross J. Reedstrom <reedstrm@rice.edu>
To: Mart?n Marqu?s <martin@bugs.unl.edu.ar>
To: Vincent Stoessel <vincent@xaymaca.com>
Cc: SQL <pgsql-sql@postgresql.org>
Subject: Re: Migrating a MySQL schema with an enum
Date: Thu, 21 Mar 2002 10:02:28 -0600
Message-ID: <20020321160227.GC9471@rice.edu> (raw)
In-Reply-To: <3C99F0EA.2050206@xaymaca.com> <20020321113145.E84DBFA1D@bugs.unl.edu.ar>
References: <3C991E29.C90559F4@heart.com.au>
	<20020321113145.E84DBFA1D@bugs.unl.edu.ar>
	<3C99F0EA.2050206@xaymaca.com>
	<3C991E29.C90559F4@heart.com.au>
	<20020321113145.E84DBFA1D@bugs.unl.edu.ar>

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)
> 
> <snip>
> 
> 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)

Ross



view thread (10+ messages)  latest in thread

Message-ID: <20020321160227.GC9471@rice.edu>
Permalink:  ../20020321160227.GC9471@rice.edu/
Also on:    postgresql.org/message-id/20020321160227.GC9471@rice.edu

 · 

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-sql@postgresql.org
  Cc: reedstrm@rice.edu, martin@bugs.unl.edu.ar, vincent@xaymaca.com
  Subject: Re: Migrating a MySQL schema with an enum
  In-Reply-To: <20020321160227.GC9471@rice.edu>

* 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