Re: 21 bit number for sequence

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 21 bit number for sequence
Дата
Msg-id 18406.1145117095@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 21 bit number for sequence  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
> If you just want to store numbers, use numeric. Why do you want to
> combine numeric and a sequence?

He could use a numeric column and write the default as
    nextval('seq')::numeric

Of course, he'll be paying through the nose performance-wise for
his insistence on not fixing his Oracle-centric data representation,
but if programmer time is cheaper than machine time then maybe it's
the right tradeoff.

            regards, tom lane

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

Предыдущее
От: Francisco Reyes
Дата:
Сообщение: Re: Hardware related question: 3ware 9500S
Следующее
От: Francisco Reyes
Дата:
Сообщение: Re: Asking advice on speeding up a big table