A little help with transactions, please - Mailing list pgsql-novice

From Richard Lough
Subject A little help with transactions, please
Date
Msg-id 3FCDD42C.BABC5EC@dnet.co.uk
Whole thread Raw
Responses Re: A little help with transactions, please
List pgsql-novice
Hi all,

This is my first attempt at transactions, and I seem to be missing
something. Briefly, the transaction is this

BEGIN;
    UPDATE table A;
    UPDATE table B;
COMMIT;

I find that the update to table A attempts to produce a duplicate
primary primary key, and synchronisation with the server is lost.

The update to table B then proceeds without the benefit of the
option to rollback the transaction. This seems wrong to me.
I need both updates completed or neither. Have I missed
something?

TIA

Richard A Lough

pgsql-novice by date:

Previous
From: Eldad
Date:
Subject: PostgreSQL for Windows?
Next
From: "Amy Young"
Date:
Subject: PostgreSQL Training