| From: | Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com> |
|---|---|
| To: | Pavan Deolasee <pavan(dot)deolasee(at)gmail(dot)com> |
| Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: visibility maps |
| Date: | 2008-12-06 14:27:35 |
| Message-ID: | 493A8BD7.6060809@enterprisedb.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Pavan Deolasee wrote:
> /*
> * We don't need to lock the page, as we're only looking at a single
> bit.
> */
> result = (map[mapByte] & (1 << mapBit)) ? true : false;
>
>
> Isn't this a dangerous assumption to make ? I am not so sure that even a bit
> can be read atomically on all platforms.
Umm, what non-atomic state could the bit be in? Half-set, half-cleared?
Or do you think that if some other bit in proximity is changed, the
other bit would temporarily flip 0->1->0, or something like that? I
don't think that should happen.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Heikki Linnakangas | 2008-12-06 14:38:02 | Re: visibility maps and heap_prune |
| Previous Message | Heikki Linnakangas | 2008-12-06 14:21:31 | Re: visibility map - what do i miss? |