Re: table sequence, renumbering

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: "J(dot)V(dot)" <jvsrvcs(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: table sequence, renumbering
Date: 2011-10-04 16:00:48
Message-ID: CAOR=d=0ZAoK87jkn8+CekjR4VcpXNuKYnkE9wsH5ccDEhiW4Vw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Oct 4, 2011 at 9:51 AM, J.V. <jvsrvcs(at)gmail(dot)com> wrote:
> What is the absolute fastest way to populate a primary key / id column from
> a named db sequence (disabled constraints and want to renumber the primary
> key / id column from sequence.
>
> cannot use auto inc or serial column because need to use generic hibernate
> mapping files for multiple DB's in the end, but want a stored proc to simple
> reorder a primary key int column pulling from a named sequence, if there is
> a single command.

Not even temporary sequences to do the just the renumbering?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2011-10-04 16:03:28 Re: table sequence, renumbering
Previous Message Scott Marlowe 2011-10-04 15:59:36 Re: LAPP server moving from 4 GB RAM to 16 GB - increase shared_buffers?