Re: Sequence Incrementing by 2 insted of 1 - Mailing list pgsql-general

From A. Kretschmer
Subject Re: Sequence Incrementing by 2 insted of 1
Date
Msg-id 20090428062446.GB13320@a-kretschmer.de
Whole thread Raw
In response to Sequence Incrementing by 2 insted of 1  (David <david@vanlaatum.id.au>)
Responses Re: Sequence Incrementing by 2 insted of 1
List pgsql-general
In response to David :
> Our internal task database is doing something odd in that the sequence is incrementing by 2 instead of 1 and I can't
findany 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
beforeand 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
areason why? 

Wild guess: there are an other call to nextval() in one of the triggers.
But without the code it is hard to guess...


Regards, Andreas
--
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net

pgsql-general by date:

Previous
From: Brad Budge
Date:
Subject: Prepare / Execute Method Error
Next
From: David
Date:
Subject: Re: Sequence Incrementing by 2 insted of 1