Re: Bitfields always atomic? Other way to store attributes?

Поиск
Список
Период
Сортировка
От TJ O'Donnell
Тема Re: Bitfields always atomic? Other way to store attributes?
Дата
Msg-id 1066.209.223.166.104.1143582901.squirrel@www.gnova.com
обсуждение исходный текст
Ответ на Bitfields always atomic? Other way to store attributes?  (Bryce Nesbitt <bryce1@obviously.com>)
Список pgsql-sql
> If I have two threads modifying the same "bit" field:
>     thread1=> update table set bf=bf | '01000'
>     thread2=> update table set bf=bf | '10000'
> Will this operation always be safe (e.g. result in bf='11000')?  Or

Won't this always result in bf='11xxx', depending on the
original values of bf?

TJ
www.gnova.com





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

Предыдущее
От: "Fay Du"
Дата:
Сообщение: Re: Update question
Следующее
От: "Owen Jacobson"
Дата:
Сообщение: Re: Bitfields always atomic? Other way to store attributes?