perl/DBI transaction rollback of sequences - Mailing list pgsql-novice

From Doug Silver
Subject perl/DBI transaction rollback of sequences
Date
Msg-id Pine.LNX.4.21.0203201411240.19690-100000@danzig.sd.quantified.net
Whole thread Raw
List pgsql-novice
Hi All -

Sorry if this isn't the right list, but I'm hoping someone might have some
insight into this.

I'm just trying to confirm the perl DBI transaction/rollback feature,
which works as expected except for one thing, one field that is SERIAL
keeps incrementing, i.e. the sequence doesn't get rolled back.  Does this
mean I need to manually rollback (setval (current value-1))??

I tried both automatically inserting into the table and manually getting
the next value, but it doesn't matter.

I'm using perl 5.6, DBI-1.20, DBD-Pg-1.01, and postgresql-7.1.3.

Thanks!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Doug Silver
Network Manager
Quantified Systems, Inc
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~






pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Estimating Database Disk Space
Next
From: "Josh Berkus"
Date:
Subject: Re: [SQL] few admin questions