pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Japin Li <japinli@hotmail.com>
Cc: 大坏蛋! <769323213@qq.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: error: #error PostgreSQL does not have native spinlock support on this platform. error: unknown type name ‘slock_t’
Date: Sat, 17 Sep 2022 10:51:27 -0400
Message-ID: <71597.1663426287@sss.pgh.pa.us> (raw)
In-Reply-To: <MEYP282MB166925990C50A45E095FC5E7B64B9@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM>
References: <tencent_2C318EE5AB619D16ECCAE06FFDC9C4ED650A@qq.com>
	<MEYP282MB166925990C50A45E095FC5E7B64B9@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM>

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





view thread (2+ messages)

Message-ID: <71597.1663426287@sss.pgh.pa.us>
Permalink:  ../71597.1663426287@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/71597.1663426287@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, japinli@hotmail.com, 769323213@qq.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: error: #error PostgreSQL does not have native spinlock support on this platform. error: unknown type name ‘slock_t’
  In-Reply-To: <71597.1663426287@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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