Re: Get block of N numbers from sequence

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Thomas Guettler <hv(at)tbz-pariv(dot)de>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Get block of N numbers from sequence
Date: 2009-05-20 11:51:58
Message-ID: b42b73150905200451k5a2e4707pc82f73a312da8dff@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, May 20, 2009 at 3:00 AM, Thomas Guettler <hv(at)tbz-pariv(dot)de> wrote:
> 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.

advisory locks are superior for locking sequences in almost every way....

merlin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Leif B. Kristensen 2009-05-20 11:53:43 Re: [Windows] Feedback on PG?
Previous Message Merlin Moncure 2009-05-20 11:46:24 Re: Providing an alternative result when there is no result