pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix --disable-spinlocks in 9.2 and 9.3 branches. 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix --disable-spinlocks in 9.2 and 9.3 branches. @ 2016-04-18 17:20 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2016-04-18 17:20 UTC (permalink / raw) To: pgsql-committers Fix --disable-spinlocks in 9.2 and 9.3 branches. My back-patch of the 9.4-era commit 44cd47c1d49655c5 into 9.2 and 9.3 fixed HPPA builds as expected, but it broke --disable-spinlocks builds, because the dummy spinlock is initialized before the underlying semaphore infrastructure is alive. In 9.4 and up this works because of commit daa7527afc227443, which decoupled initialization of an slock_t variable from access to the actual system semaphore object. The best solution seems to be to back-port that patch, which should be a net win anyway because it improves the usability of --disable-spinlocks builds in the older branches; and it's been out long enough now to not be worrisome from a stability perspective. Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/35166fd7614ed4f03e31f7ce1227c70103de22c9 Modified Files -------------- src/backend/postmaster/postmaster.c | 9 +++++++ src/backend/storage/ipc/ipci.c | 1 + src/backend/storage/ipc/shmem.c | 21 ++++++++++++--- src/backend/storage/lmgr/spin.c | 52 ++++++++++++++++++++++++------------- src/include/pg_config_manual.h | 8 ++++++ src/include/storage/s_lock.h | 5 +--- src/include/storage/spin.h | 9 +++++++ 7 files changed, 80 insertions(+), 25 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix --disable-spinlocks in 9.2 and 9.3 branches. @ 2016-04-18 17:20 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2016-04-18 17:20 UTC (permalink / raw) To: pgsql-committers Fix --disable-spinlocks in 9.2 and 9.3 branches. My back-patch of the 9.4-era commit 44cd47c1d49655c5 into 9.2 and 9.3 fixed HPPA builds as expected, but it broke --disable-spinlocks builds, because the dummy spinlock is initialized before the underlying semaphore infrastructure is alive. In 9.4 and up this works because of commit daa7527afc227443, which decoupled initialization of an slock_t variable from access to the actual system semaphore object. The best solution seems to be to back-port that patch, which should be a net win anyway because it improves the usability of --disable-spinlocks builds in the older branches; and it's been out long enough now to not be worrisome from a stability perspective. Branch ------ REL9_2_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/37f30b2510525155f4f1f94288a015163689cc69 Modified Files -------------- src/backend/postmaster/postmaster.c | 9 +++++++ src/backend/storage/ipc/ipci.c | 1 + src/backend/storage/ipc/shmem.c | 21 ++++++++++++--- src/backend/storage/lmgr/spin.c | 52 ++++++++++++++++++++++++------------- src/include/pg_config_manual.h | 8 ++++++ src/include/storage/s_lock.h | 5 +--- src/include/storage/spin.h | 9 +++++++ 7 files changed, 80 insertions(+), 25 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-04-18 17:20 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2016-04-18 17:20 pgsql: Fix --disable-spinlocks in 9.2 and 9.3 branches. Tom Lane <tgl@sss.pgh.pa.us> 2016-04-18 17:20 pgsql: Fix --disable-spinlocks in 9.2 and 9.3 branches. Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox