]> granicus.if.org Git - postgresql/commit
Revert hooks for session start and end, take two
authorMichael Paquier <michael@paquier.xyz>
Wed, 2 Oct 2019 00:55:27 +0000 (09:55 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 2 Oct 2019 00:55:27 +0000 (09:55 +0900)
commit9555cc8d2b02c4191d67ba39f589b39b01735518
tree5c4e08e17d8f5ec908e4d52fd79ba3bd71ed903e
parent540f31680913b4e11f2caa40cafeca269cfcb22f
Revert hooks for session start and end, take two

The location of the session end hook has been chosen so as it is
possible to allow modules to do their own transactions, however any
trying to any any subsystem which went through before_shmem_exit()
would cause issues, limiting the pluggability of the hook.

Per discussion with Tom Lane and Andres Freund.

Discussion: https://postgr.es/m/18722.1569906636@sss.pgh.pa.us
src/backend/tcop/postgres.c
src/backend/utils/init/postinit.c
src/include/tcop/tcopprot.h
src/test/modules/Makefile
src/test/modules/test_session_hooks/.gitignore [deleted file]
src/test/modules/test_session_hooks/Makefile [deleted file]
src/test/modules/test_session_hooks/README [deleted file]
src/test/modules/test_session_hooks/expected/test_session_hooks.out [deleted file]
src/test/modules/test_session_hooks/session_hooks.conf [deleted file]
src/test/modules/test_session_hooks/sql/test_session_hooks.sql [deleted file]
src/test/modules/test_session_hooks/test_session_hooks.c [deleted file]