Re: [HACKERS] Enticing interns to PostgreSQL - Mailing list pgsql-advocacy

From Josh Berkus
Subject Re: [HACKERS] Enticing interns to PostgreSQL
Date
Msg-id 200507261409.10388.josh@agliodbs.com
Whole thread Raw
In response to Re: [HACKERS] Enticing interns to PostgreSQL  (Chris Travers <chris@travelamericas.com>)
List pgsql-advocacy
Chris,

> How hard would it be to automatically create enum_ tables in the back
> ground to emulate MySQL's enum type?  Sort of like we do with SERIAL
> datatypes...  Part of the problem is that MySQL's enum type is so
> braindead from a database design perspective that most of us would not
> be interested in using it.  Emulating an int foreign key for another
> created table might make it ok, though.

The mysql2postgres.pl script actually does this (create enum types).   It
would be better to auto-create a table and FK, though.

--
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco

pgsql-advocacy by date:

Previous
From: Jeff Davis
Date:
Subject: Re: ENUM type
Next
From: Josh Berkus
Date:
Subject: Re: SQL/PSM for 8.2 will offer ANSI/ISO, MySQL, and DB2 Compatibility