[go: up one dir, main page]

Re: Get block of N numbers from sequence

From: Thomas Guettler <hv(at)tbz-pariv(dot)de>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Get block of N numbers from sequence
Date: 2009-05-20 07:00:07
Message-ID: 4A13AA77.40400@tbz-pariv.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thomas Guettler schrieb:
> Hi,
>
> how can you get N numbers (without holes) from a sequence?
>

If sequences could be locked like tables, it would be easy.

In old versions of postgres it worked:
http://archives.postgresql.org//pgsql-hackers/2001-10/msg00930.php

Thomas

--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de

In response to Responses Browse pgsql-general by date
  From Date Subject
Next Message Gilles 2009-05-20 07:32:13 [Windows] Feedback on PG?
Previous Message Thomas Guettler 2009-05-20 06:53:55 Re: Get block of N numbers from sequence