Re: Converting MySQL tinyint to PostgreSQL

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Converting MySQL tinyint to PostgreSQL
Дата
Msg-id 18977.1121177971@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Converting MySQL tinyint to PostgreSQL  (Joe <svn@freedomcircle.net>)
Список pgsql-general
Joe <svn@freedomcircle.net> writes:
> I have a MySQL database that I'm converting to PostgreSQL which has 10 columns
> with TINYINT type, i.e., a one-byte integer.

> I'm wondering what would be the best conversion choice for these columns:
> smallint, numeric(1), char(1), something else?

smallint, for sure; the others have more overhead.

> BTW, is TINYINT part of any SQL Standard?

No.  If it were, we'd feel more urgency about implementing it ;-)

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: "Ets ROLLAND"
Дата:
Сообщение: Pb with boolean between MS-Access and PostgreSQl 8.0.3
Следующее
От: Dawid Kuroczko
Дата:
Сообщение: Re: Converting MySQL tinyint to PostgreSQL