Add hooks for session start and session end
Andrew Dunstan <andrew@dunslane.net>
Add hooks for session start and session end These hooks can be used in loadable modules. A simple test module is included. Discussion: https://postgr.es/m/20170720204733.40f2b7eb.nagata@sraoss.co.jp Fabrízio de Royes Mello and Yugo Nagata Reviewed by Michael Paquier and Aleksandr Parfenov
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/tcop/postgres.c | modified | +6 −0 |
| src/backend/utils/init/postinit.c | modified | +6 −0 |
| src/include/tcop/tcopprot.h | modified | +7 −0 |
| src/test/modules/Makefile | modified | +1 −0 |
| src/test/modules/test_session_hooks/expected/test_session_hooks.out | added | +31 −0 |
| src/test/modules/test_session_hooks/.gitignore | added | +4 −0 |
| src/test/modules/test_session_hooks/Makefile | added | +21 −0 |
| src/test/modules/test_session_hooks/README | added | +2 −0 |
| src/test/modules/test_session_hooks/session_hooks.conf | added | +2 −0 |
| src/test/modules/test_session_hooks/sql/test_session_hooks.sql | added | +12 −0 |
| src/test/modules/test_session_hooks/test_session_hooks--1.0.sql | added | +4 −0 |
| src/test/modules/test_session_hooks/test_session_hooks.c | added | +134 −0 |
| src/test/modules/test_session_hooks/test_session_hooks.control | added | +3 −0 |