A little help with transactions, please

Поиск
Список
Период
Сортировка
От Richard Lough
Тема A little help with transactions, please
Дата
Msg-id 3FCDD42C.BABC5EC@dnet.co.uk
обсуждение исходный текст
Ответы Re: A little help with transactions, please
Список 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 по дате отправления:

Предыдущее
От: Eldad
Дата:
Сообщение: PostgreSQL for Windows?
Следующее
От: "Amy Young"
Дата:
Сообщение: PostgreSQL Training