Re: Converting MySQL tinyint to PostgreSQL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joe <svn(at)freedomcircle(dot)net>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Converting MySQL tinyint to PostgreSQL
Date: 2005-07-12 14:19:31
Message-ID: 18977.1121177971@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Joe <svn(at)freedomcircle(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dawid Kuroczko 2005-07-12 14:25:26 Re: Converting MySQL tinyint to PostgreSQL
Previous Message Ets ROLLAND 2005-07-12 14:16:55 Pb with boolean between MS-Access and PostgreSQl 8.0.3