From: Vivek Khera <khera@kciLink.com>
To: pgsql-sql@postgresql.org
Subject: Re: DB porting questions...
Date: 17 Apr 2001 11:45:08 -0400
Message-ID: <x7k84j7cor.fsf@onceler.kciLink.com> (raw)
References: <B51F0C636E578A4E832D3958690CD73E0130BEA7@es04snlnt>
>>>>> "JD" == Jeffrey Diehl <jdiehl@sandia.gov> writes:
JD> I'm in the final stages of migrating from mysql to postgres and have a few
JD> more questions...
I'm just starting, but I've got two questions. I've found some
scripts out there that claim to do the conversion of the SQL create
commands, but none does the right thing it seems.
I've now found out how to handle the timestamp for insert times and
how to do auto-increment fields.
My unsderstanding of MySQL's enum type is to use something like this
in postgres:
owner_status varchar(9) check
(owner_status in ('pending','active','suspended'))
NOT NULL default 'pending',
But how does one handle the "set" dataype? The archive for the
mailing lists is not helping me find out how to deal with that.
Basically, I have a field with a bunch of flags defining the
attributes of a user, and storing that in a bit-field makes sense.
Currently in MySQL I have this:
owner_features set('premium','haveccinfo') default NULL,
for example. Some other fiels may have about 20 such values, and
MySQL lets me keep these in 3 bytes as a bit-field behind the scenes.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: khera@kciLink.com
Subject: Re: DB porting questions...
In-Reply-To: <x7k84j7cor.fsf@onceler.kciLink.com>
References: <B51F0C636E578A4E832D3958690CD73E0130BEA7@es04snlnt> <x7k84j7cor.fsf@onceler.kciLink.com>
* 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