pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedRe: error: #error PostgreSQL does not have native spinlock support on this platform. error: unknown type name ‘slock_t’
2+ messages / 2 participants
[nested] [flat]
* Re: error: #error PostgreSQL does not have native spinlock support on this platform. error: unknown type name ‘slock_t’
@ 2022-09-17 12:44 Japin Li <japinli@hotmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Japin Li @ 2022-09-17 12:44 UTC (permalink / raw)
To: 大坏蛋! <769323213@qq.com>; +Cc: pgsql-bugs@lists.postgresql.org
On Sat, 17 Sep 2022 at 14:38, 大坏蛋! <769323213@qq.com> wrote:
> [root@localhost build]# uname -a
> Linux localhost.localdomain 4.19.90-23.19.v2101.a.ky10.loongarch64 #1 SMP Mon Sep 13 22:33:20 CST 2021 loongarch64 loongarch64 loongarch64 GNU/Linux
>
>
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.
Maybe you could encounter other questions on loongarch, I'm not sure.
--
Regrads,
Japin Li.
ChengDu WenWu Information Technology Co.,Ltd.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: error: #error PostgreSQL does not have native spinlock support on this platform. error: unknown type name ‘slock_t’
@ 2022-09-17 14:51 Tom Lane <tgl@sss.pgh.pa.us>
parent: Japin Li <japinli@hotmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2022-09-17 14:51 UTC (permalink / raw)
To: Japin Li <japinli@hotmail.com>; +Cc: 大坏蛋! <769323213@qq.com>; pgsql-bugs@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2022-09-17 14:51 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-09-17 12:44 Re: error: #error PostgreSQL does not have native spinlock support on this platform. error: unknown type name ‘slock_t’ Japin Li <japinli@hotmail.com>
2022-09-17 14:51 ` Re: error: #error PostgreSQL does not have native spinlock support on this platform. error: unknown type name ‘slock_t’ Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox