Re: Bitfields always atomic? Other way to store attributes? - Mailing list pgsql-sql

From TJ O'Donnell
Subject Re: Bitfields always atomic? Other way to store attributes?
Date
Msg-id 1066.209.223.166.104.1143582901.squirrel@www.gnova.com
Whole thread Raw
In response to Bitfields always atomic? Other way to store attributes?  (Bryce Nesbitt <bryce1@obviously.com>)
List 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 by date:

Previous
From: "Fay Du"
Date:
Subject: Re: Update question
Next
From: "Owen Jacobson"
Date:
Subject: Re: Bitfields always atomic? Other way to store attributes?