]> granicus.if.org Git - postgresql/commit
Remove set_latch_on_sigusr1 flag.
authorRobert Haas <rhaas@postgresql.org>
Fri, 9 Oct 2015 18:31:04 +0000 (14:31 -0400)
committerRobert Haas <rhaas@postgresql.org>
Fri, 9 Oct 2015 18:31:04 +0000 (14:31 -0400)
commitdb0f6cad4884bd4c835156d3a720d9a79dbd63a9
treee16029e0e2a001eb34096daeb3c8100e2afb0a1d
parentb7aac36245261eba9eb7d18561ce44220b361959
Remove set_latch_on_sigusr1 flag.

This flag has proven to be a recipe for bugs, and it doesn't seem like
it can really buy anything in terms of performance.  So let's just
*always* set the process latch when we receive SIGUSR1 instead of
trying to do it only when needed.

Per my recent proposal on pgsql-hackers.
src/backend/postmaster/bgworker.c
src/backend/storage/ipc/procsignal.c
src/backend/storage/ipc/shm_mq.c
src/backend/tcop/postgres.c
src/include/storage/procsignal.h
src/test/modules/test_shm_mq/setup.c