Re: [pgsql-advocacy] MySQL to PostgreSQL, was ENUM type

Поиск
Список
Период
Сортировка
От Kenneth Marshall
Тема Re: [pgsql-advocacy] MySQL to PostgreSQL, was ENUM type
Дата
Msg-id 20050728150449.GC23645@it.is.rice.edu
обсуждение исходный текст
Ответ на Re: [pgsql-advocacy] MySQL to PostgreSQL, was ENUM type  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Thu, Jul 28, 2005 at 12:53:07AM -0400, Tom Lane wrote:
> Gregory Youngblood <pgcluster@netio.org> writes:
> > ... the problem is unsigned bigint in mysql to postgresql.
> > There's not another larger integer size that can be used that would
> > allow the 18446744073709551615 (is that the max value?) max value
> > available in mysql. Or am I missing something?
>
> You'd have to translate that to NUMERIC, which would work but would
> take a bit of a performance hit ...
>
>             regards, tom lane
>
Since the numeric range of the PostgreSQL bigint and the MySQL
unsigned bigint is the same, just shifted. How difficult would it
be to put a bigint overlay in PostgreSQL that would do that for
you. We had to do this on the application side to make use of the
PostgreSQL bigint and not the slower NUMERIC.

Ken

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

Предыдущее
От: Randall Perry
Дата:
Сообщение: Re: Rules vs Triggers
Следующее
От: "Shu Hung (Koala)"
Дата:
Сообщение: Fwd: PostgreSQL 7.1.3 installation problem on FC3