Re: error: #error PostgreSQL does not have native spinlock support on this platform. error: iso-8859-1 type name ‘slock_t’ - Mailing list pgsql-bugs

From Tom Lane
Subject Re: error: #error PostgreSQL does not have native spinlock support on this platform. error: iso-8859-1 type name ‘slock_t’
Date
Msg-id 71597.1663426287@sss.pgh.pa.us
Whole thread Raw
In response to Re: error: #error PostgreSQL does not have native spinlock support on this platform. error: iso-8859-1 type name ‘slock_t’  (Japin Li <japinli@hotmail.com>)
List pgsql-bugs
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



pgsql-bugs by date:

Previous
From: Japin Li
Date:
Subject: Re: error: #error PostgreSQL does not have native spinlock support on this platform. error: iso-8859-1 type name ‘slock_t’
Next
From: PG Bug reporting form
Date:
Subject: BUG #17618: unnecessary filter column <> text even after adding index