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 1m36vs-00045p-2P for pgsql-committers@arkaria.postgresql.org; Tue, 13 Jul 2021 01:09:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m36vr-0002k0-2H for pgsql-committers@arkaria.postgresql.org; Tue, 13 Jul 2021 01:09:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m36vq-0002js-Sw for pgsql-committers@lists.postgresql.org; Tue, 13 Jul 2021 01:09:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m36vp-00052r-1A for pgsql-committers@lists.postgresql.org; Tue, 13 Jul 2021 01:09:53 +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 16D19pEX3189570; Mon, 12 Jul 2021 21:09:51 -0400 From: Tom Lane To: Thomas Munro cc: pgsql-committers Subject: Re: pgsql: Add PSQL_WATCH_PAGER for psql's \watch command. In-reply-to: References: <3187588.1626136248@sss.pgh.pa.us> Comments: In-reply-to Thomas Munro message dated "Tue, 13 Jul 2021 13:03:51 +1200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3189568.1626138591.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 12 Jul 2021 21:09:51 -0400 Message-ID: <3189569.1626138591@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Thomas Munro writes: > On Tue, Jul 13, 2021 at 12:30 PM Tom Lane wrote: >> I think this is going to fall over on gaur, which doesn't have POSIX-st= yle >> sigwait. > Oh, thanks for the advance warning. Wouldn't HAVE_SIGWAIT be better? = Like so. That won't help as-is, because it *does* have sigwait, just not with the POSIX API. thread_test.c does this: /* Test for POSIX.1c 2-arg sigwait() and fail on single-arg version */ #include int sigwait(const sigset_t *set, int *sig); which perhaps should be pulled out of there and moved to the configure script proper. regards, tom lane