From: | Szymon Guz <mabewlun(at)gmail(dot)com> |
---|---|
To: | Lukasz Brodziak <lukasz(dot)brodziak(at)gmail(dot)com> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Sequence "self" change - possible? |
Date: | 2011-11-28 14:07:44 |
Message-ID: | CAFjNrYsA=fvhL0v0HMG55RsHkuj7hPCFWWfmTcaNFmu1aF1CFg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On 28 November 2011 15:04, Lukasz Brodziak <lukasz(dot)brodziak(at)gmail(dot)com>wrote:
> Hello,
>
> Is it possible for sequence to decrement its value by itself? Or is it
> possible to see wether it was changed by someone. The thing is that on one
> of our clinet's DB sequence rolled back to the state from 8 months ago.
>
> --
> Łukasz Brodziak
>
>
Hi Łukasz,
you can have set the sequence as cycled (
http://www.postgresql.org/docs/current/static/sql-createsequence.html) so
it can set automatically to minvalue when reaching maxvalue.
Show us the definition of that sequence.
regards
Szymon
From | Date | Subject | |
---|---|---|---|
Next Message | Oliveiros d'Azevedo Cristina | 2011-11-28 14:10:26 | Re: Sequence "self" change - possible? |
Previous Message | Lukasz Brodziak | 2011-11-28 14:04:10 | Sequence "self" change - possible? |