Re: Creating exponential sequences

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Creating exponential sequences
Дата
Msg-id 28533.1034046788@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Creating exponential sequences  (Rod Kreisler <rod@23net.net>)
Ответы Re: Creating exponential sequences  (Rod Kreisler <rod@23net.net>)
Список pgsql-novice
Rod Kreisler <rod@23net.net> writes:
> Is there any way to create an exponential sequence rather than incremental?
> What I would like is a sequence that would start at 1 and grow exponentially
> by 2.  (i.e. 1,2,4,8,16,32....)

A sequence that will bomb out after 32 or 64 increments seems of limited
use ...

            regards, tom lane

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

Предыдущее
От: Rod Kreisler
Дата:
Сообщение: Creating exponential sequences
Следующее
От: Rod Kreisler
Дата:
Сообщение: Re: Creating exponential sequences