[patch] bufmgr Half state CAS - Mailing list pgsql-hackers

From Alexandre Felipe
Subject [patch] bufmgr Half state CAS
Date
Msg-id CAE8JnxN3SPJxvAQZ7doESAHrfayx+AXUVr4c3RadApPONz00zQ@mail.gmail.com
Whole thread
Responses Re: [patch] bufmgr Half state CAS
List pgsql-hackers
Currently Buffer header state is a 64-bit, but it is conceptually a bit field structure.
The CAS loops care about only some of those bits, however by operating
on a 64-bit structure unrelated field changes will cause a retry.

The atomic operations don't support a comparison mask, but in this case
we can at least CAS 32-bit, low and high half separately, reducing the likelihood
of retrial.

Regards,
Alexandre.
Attachment

pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: [PG19]pg_verifybackup never finishes on a gzip-compressed tar backup
Next
From: Corey Huinker
Date:
Subject: Re: Credits For v19