"Mikheev, Vadim" <[EMAIL PROTECTED]> writes:
> START_/END_CRIT_SECTION is mostly CritSectionCount++/--.
> Recording could be made as LockedSpinLocks[LockedSpinCounter++] = &spinlock
> in pre-allocated array.

Yeah, I suppose.  We already do record locking of all the fixed
spinlocks (BufMgrLock etc), it's just the per-buffer spinlocks that
are missing from that (and CRIT_SECTION calls).  Would it be reasonable
to assume that only one buffer spinlock could be held at a time?

> (BTW, it's bad that pg_ctl doesn't wait on shutdown by default).

I agree.  Anyone object to changing pg_ctl to do -w by default?
What should we call the switch to tell it to not wait?  -n?

                        regards, tom lane

Reply via email to