Re: pgsql: Add PSQL_WATCH_PAGER for psql's \watch command. - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: Add PSQL_WATCH_PAGER for psql's \watch command.
Date
Msg-id 3189569.1626138591@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql: Add PSQL_WATCH_PAGER for psql's \watch command.  (Thomas Munro <thomas.munro@gmail.com>)
Responses Re: pgsql: Add PSQL_WATCH_PAGER for psql's \watch command.  (Thomas Munro <thomas.munro@gmail.com>)
List pgsql-committers
Thomas Munro <thomas.munro@gmail.com> writes:
> On Tue, Jul 13, 2021 at 12:30 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I think this is going to fall over on gaur, which doesn't have POSIX-style
>> 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 <signal.h>
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



pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: Re: pgsql: Add PSQL_WATCH_PAGER for psql's \watch command.
Next
From: Thomas Munro
Date:
Subject: Re: pgsql: Add PSQL_WATCH_PAGER for psql's \watch command.