git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 1e53fe0) | patch
Partially deduplicate interrupt handling for background processes.
2019年12月17日 18:14:28 +0000 (13:14 -0500)
2019年12月17日 18:14:28 +0000 (13:14 -0500)
commit 7dbfea3c455e83a77213a92b9dfdc1c0577441ea
Partially deduplicate interrupt handling for background processes.

Where possible, share signal handler code and main loop interrupt
checking. This saves quite a bit of code and should simplify
maintenance, too.

This commit intends not to change the way anything works, even
though that might allow more code to be unified. It does unify
a bunch of individual variables into a ShutdownRequestPending
flag that has is now used by a bunch of different process types,
though.

Patch by me, reviewed by Andres Freund and Daniel Gustafsson.

Discussion: http://postgr.es/m/CA+TgmoZwDk=BguVDVa+qdA6SBKef=PKbaKDQALTC_9qoz1mJqg@mail.gmail.com
18 files changed:
src/backend/postmaster/Makefile diff | blob | blame | history
src/backend/postmaster/autovacuum.c diff | blob | blame | history
src/backend/postmaster/bgworker.c diff | blob | blame | history
src/backend/postmaster/bgwriter.c diff | blob | blame | history
src/backend/postmaster/checkpointer.c diff | blob | blame | history
src/backend/postmaster/interrupt.c [new file with mode: 0644] blob
src/backend/postmaster/pgarch.c diff | blob | blame | history
src/backend/postmaster/pgstat.c diff | blob | blame | history
src/backend/postmaster/startup.c diff | blob | blame | history
src/backend/postmaster/walwriter.c diff | blob | blame | history
src/backend/replication/logical/launcher.c diff | blob | blame | history
src/backend/replication/logical/worker.c diff | blob | blame | history
src/backend/replication/walreceiver.c diff | blob | blame | history
src/backend/replication/walsender.c diff | blob | blame | history
src/backend/tcop/postgres.c diff | blob | blame | history
src/backend/utils/init/globals.c diff | blob | blame | history
src/include/miscadmin.h diff | blob | blame | history
src/include/postmaster/interrupt.h [new file with mode: 0644] blob
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /