Re: HAVE_SPINLOCKS still requests exctra shared memory

2018-02-15 Thread Kyotaro HORIGUCHI
Please ignore this thread and see the following one instead. https://www.postgresql.org/message-id/20180215.201107.78574525.horiguchi.kyot...@lab.ntt.co.jp At Thu, 15 Feb 2018 20:07:03 +0900 (Tokyo Standard Time), Kyotaro HORIGUCHI wrote in <20180215.200703.242189033.horiguchi.kyot...@lab.ntt.

HAVE_SPINLOCKS still requests exctra shared memory

2018-02-15 Thread Kyotaro HORIGUCHI
Hello. As in another mail just before, spin.c seems a bit strange (without acutual harm). spin.h doesn't include pg_sema.h when HAVE_SPINLOCKS is defined, but spin.c always includes it even in the case. The file is included only to use sizeof(PGSemaphore) to calcualte SpinlockSemaSize as 0. The