If writing an OID were not atomic, the assignment would be reallydangerous. I don't think your proposed update is good.
-- Álvaro Herrera https://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services