Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZZAP-0000fr-Lt for pgsql-bugs@arkaria.postgresql.org; Sat, 17 Sep 2022 14:51:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oZZAO-0005Mh-9z for pgsql-bugs@arkaria.postgresql.org; Sat, 17 Sep 2022 14:51:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZZAO-0005MY-2F for pgsql-bugs@lists.postgresql.org; Sat, 17 Sep 2022 14:51:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oZZAK-0006VD-Qh for pgsql-bugs@lists.postgresql.org; Sat, 17 Sep 2022 14:51:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 28HEpRjp071598; Sat, 17 Sep 2022 10:51:27 -0400 From: Tom Lane To: Japin Li cc: =?utf-8?B?5aSn5Z2P6JuL77yB?= <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 =?utf-8?B?4oCYc2xvY2tfdA==?= =?utf-8?B?4oCZ?= In-reply-to: References: Comments: In-reply-to Japin Li message dated "Sat, 17 Sep 2022 20:44:56 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <71596.1663426287.1@sss.pgh.pa.us> Date: Sat, 17 Sep 2022 10:51:27 -0400 Message-ID: <71597.1663426287@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Japin Li 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