Re: Transactions in one table

Поиск
Список
Период
Сортировка
От Olivier Gautherot
Тема Re: Transactions in one table
Дата
Msg-id CAJ7S9TWc=g81qEO43Cxa0DnXg35WzSZZpgdcqRKHojPkO1SkFw@mail.gmail.com
обсуждение исходный текст
Ответ на Transactions in one table  (JORGE MALDONADO <jorgemal1960@gmail.com>)
Список pgsql-sql
Hi Jorge,

On Fri, Sep 27, 2019 at 1:22 PM JORGE MALDONADO <jorgemal1960@gmail.com> wrote:
Hi,

Does it make any sense to use transactions if only one DB operation is performed in only one table?
For example, insert only one record in a "countries" table without doing anything else in other table(s). One operation, one table, that´s it.
 
If it works, it will perform automatically a COMMIT. If it fails, it will perform a ROLLBACK. You don't gain much with atomic operations.


В списке pgsql-sql по дате отправления:

Предыдущее
От: JORGE MALDONADO
Дата:
Сообщение: Transactions in one table
Следующее
От: "David G. Johnston"
Дата:
Сообщение: Re: Transactions in one table