Re: PSA: we lack TAP test coverage on NetBSD and OpenBSD

Mikael Kjellström <mikael.kjellstrom@mksoft.nu>

From: Mikael Kjellström <mikael.kjellstrom@mksoft.nu>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2019-01-17T22:54:46Z
Lists: pgsql-hackers
On 2019-01-17 23:37, Mikael Kjellström wrote:
> 
> On 2019-01-17 23:23, Tom Lane wrote:
> 
>> Yeah, you might've been able to get by with OpenBSD/NetBSD's default
>> semaphore settings before, but they really only let one postmaster
>> run at a time; and the TAP tests want to start more than one.
>> For me it seems to work to append this to /etc/sysctl.conf:
>>
>> kern.seminfo.semmni=100
>> kern.seminfo.semmns=2000
>>
>> and either reboot, or install those settings manually with sysctl.
> 
> Looks that way.
> 
> I've increased the values and rebooted the machines.
> 
> Let's hope 5th time is the charm :-)

Nope!

But it looks like in NetBSD the options are called:

netbsd7-pgbf# sysctl -a | grep semmn
kern.ipc.semmni = 10
kern.ipc.semmns = 60
kern.ipc.semmnu = 30

so I will try and set that in /etc/sysctl.conf and reboot and see what 
happens.

/Mikael



Commits

  1. Fix portability problem in pgbench.

  2. Avoid assuming that we know the spelling of getopt_long's error messages.