On Sat, Jul 25, 2015 at 12:42 AM, Amit Kapila <amit.kapil...@gmail.com> wrote: > I thought that internal API will automatically take care of it, > example for msvc it uses _InterlockedCompareExchange64 > which if doesn't work on 32-bit systems or is not defined, then > we have to use 32-bit version, but I am not certain about > that fact.
Instead of using pg_atomic_uint64, how about using pg_atomic_uint32 and storing the pgprocno rather than the pointer directly? Then it can work the same way (and be the same size) on every platform. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers