Re: Converting MySQL tinyint to PostgreSQL
От
Alvaro Herrera
Тема
Re: Converting MySQL tinyint to PostgreSQL
Дата
Msg-id
20050712143010.GA11315@alvh.no-ip.org
Ответ на
Список
Дерево обсуждения
Converting MySQL tinyint to PostgreSQL Joe <svn@freedomcircle.net>
Re: Converting MySQL tinyint to PostgreSQL Tom Lane <tgl@sss.pgh.pa.us>
Re: Converting MySQL tinyint to PostgreSQL Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Converting MySQL tinyint to PostgreSQL Dawid Kuroczko <qnex42@gmail.com>
Re: Converting MySQL tinyint to PostgreSQL Joe <svn@freedomcircle.net>
Re: Converting MySQL tinyint to PostgreSQL Tom Lane <tgl@sss.pgh.pa.us>
Re: Converting MySQL tinyint to PostgreSQL Joe <svn@freedomcircle.net>
Re: Converting MySQL tinyint to PostgreSQL Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: Converting MySQL tinyint to PostgreSQL Joe <svn@freedomcircle.net>
Re: Converting MySQL tinyint to PostgreSQL Tom Lane <tgl@sss.pgh.pa.us>
Re: Converting MySQL tinyint to PostgreSQL Greg Stark <gsstark@mit.edu>
Re: Converting MySQL tinyint to PostgreSQL Tom Lane <tgl@sss.pgh.pa.us>
Re: Converting MySQL tinyint to PostgreSQL Dawid Kuroczko <qnex42@gmail.com>
Re: Converting MySQL tinyint to PostgreSQL Martijn van Oosterhout <kleptog@svana.org>
Re: Converting MySQL tinyint to PostgreSQL Ron Mayer <rm_pg@cheapcomplexdevices.com>
Re: Converting MySQL tinyint to PostgreSQL Bruce Momjian <pgman@candle.pha.pa.us>
Re: Converting MySQL tinyint to PostgreSQL "Jim C. Nasby" <decibel@decibel.org>
Re: Converting MySQL tinyint to PostgreSQL Martijn van Oosterhout <kleptog@svana.org>
Re: Converting MySQL tinyint to PostgreSQL "Jim C. Nasby" <decibel@decibel.org>
Re: Converting MySQL tinyint to PostgreSQL Ron Mayer <rm_pg@cheapcomplexdevices.com>
Re: Converting MySQL tinyint to PostgreSQL "Jim C. Nasby" <decibel@decibel.org>
Re: Converting MySQL tinyint to PostgreSQL Lincoln Yeoh <lyeoh@pop.jaring.my>
Re: Converting MySQL tinyint to PostgreSQL Bruce Momjian <pgman@candle.pha.pa.us>
Re: Converting MySQL tinyint to PostgreSQL Dawid Kuroczko <qnex42@gmail.com>
Re: Converting MySQL tinyint to PostgreSQL "Jim C. Nasby" <decibel@decibel.org>
Re: Converting MySQL tinyint to PostgreSQL Dawid Kuroczko <qnex42@gmail.com>
Re: Converting MySQL tinyint to PostgreSQL Scott Marlowe <smarlowe@g2switchworks.com>
Re: Converting MySQL tinyint to PostgreSQL Martijn van Oosterhout <kleptog@svana.org>
Re: Converting MySQL tinyint to PostgreSQL "Jim C. Nasby" <decibel@decibel.org>
Re: Converting MySQL tinyint to PostgreSQL Dawid Kuroczko <qnex42@gmail.com>
Re: Converting MySQL tinyint to PostgreSQL John DeSoi <desoi@pgedit.com>
On Tue, Jul 12, 2005 at 01:16:07AM -0400, Joe wrote: > I have a MySQL database that I'm converting to PostgreSQL which has 10 > columns with TINYINT type, i.e., a one-byte integer. Only one of them > qualifies as a true BOOLEAN. Two are entity identifiers (for limited range > "classes" or "categories") and three others are "type"/code values. The > last four are month numbers or day of month numbers (not implemented as > date types because the year is separate and is part of the primary key). Just to broaden your choices, there is also a "char" datatype (quotes included! If you omit them, it's a different thing, more overhead), which you can use to store a single byte. Could be used as a poor man's ENUM. Add appropiate CHECK constraints and it could be good enough for some purposes. Not useful for months, but maybe for your categories or classes. There are some usages of this in the system catalogs (e.g. pg_class.relkind) -- Alvaro Herrera () www.google.com: interfaz de línea de comando para la web.
В списке pgsql-general по дате отправления