Re: TRANSACTION FOR AN UPDATE COMMAND WITH ONE TABLE

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: TRANSACTION FOR AN UPDATE COMMAND WITH ONE TABLE
Дата
Msg-id hpk8ok$dsf$4@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на TRANSACTION FOR AN UPDATE COMMAND WITH ONE TABLE  (JORGE MALDONADO <jorgemal1960@gmail.com>)
Список pgsql-novice
On 2010-04-06, JORGE MALDONADO <jorgemal1960@gmail.com> wrote:
> --001485e609d13a8c510483958cf7
> Content-Type: text/plain; charset=ISO-8859-1
>
> I have an UPDATE command which modifies several records of one (only one)
> table.
> Is it feasible (or a good idea) to include it in a transaction block to make
> sure the process is performed with integrity?
> Or
> Does PostgreSQL has some kind of auto-integrity check with simple DB
> operations like?

a single update command either succeeds or fails.
if it fails no records will have changed, if it succeds all the
matching records will have been updated.

wrapping it in a transaction will gain you nothing.


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

Предыдущее
От: Jasen Betts
Дата:
Сообщение: Re: Read only postgres server
Следующее
От: "Machiel Richards"
Дата:
Сообщение: FW: Postgres cpu & memory usage