Japin Li <japinli@hotmail.com> writes:
> IIRC, PostgreSQL do not support loongarch platform, so if you want to
> use PostgreSQL on loongarch, you can a) disable spinlock when executing
> configure (not recommended for production) or b) implement a spinlock
> for PostgreSQL on loongarch64 platform.
Wikipedia suggests that loongarch is more or less a MIPS clone,
so maybe you could adapt the MIPS stanza in s_lock.h to work.
Do "make check" in src/backend/storage/lmgr for a basic smoke-test
of new spinlock code.
regards, tom lane