Re: Sequence Incrementing by 2 insted of 1

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Sequence Incrementing by 2 insted of 1
Date: 2009-04-28 11:37:26
Message-ID: gt6ppm$j17$2@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2009-04-28, David <david(at)vanlaatum(dot)id(dot)au> wrote:
> Our internal task database is doing something odd in that the sequence is incrementing by 2 instead of 1 and I can't find any reason why I have checked the
> sequence itself to see if it had somehow got set to increment by 2 but no. The table in question has a number of both before and after triggers that do
> various bits of business logic as well as some rewrite rules to track field changes. Using 8.3.0. Can anyone think of a reason why?

possibly a rule involves the the sequence, thus it's value is computed twice.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message mgazzo 2009-04-28 11:41:32 Re: PostgreSQL Hibernate Problem
Previous Message Tim Uckun 2009-04-28 11:36:24 Huge sample dataset for testing.