sequences and rollback

From: Rick Roman <rick(at)cotse(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Subject: sequences and rollback
Date: 2005-03-31 19:18:19
Message-ID: 424C4CFB.60001@cotse.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Do I understand correctly that you cannot roll back sequences?

JDBC example:

connect();
db.setAutoCommit(false);
Statement stmt=db.createStatement();
stmt.executeQuery("select nextval('test_seq')");
... other table updates ...
stmt.close();
db.rollback();
db.close();

In this example, the sequence does not roll back. .. other table updates
... do roll back.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Fuhr 2005-03-31 19:32:41 Re: sequences and rollback
Previous Message Dinesh Pandey 2005-03-31 09:21:03 FW: Help