]> granicus.if.org Git - postgresql/commit
Add hooks for session start and session end
authorAndrew Dunstan <andrew@dunslane.net>
Wed, 15 Nov 2017 15:16:34 +0000 (10:16 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Wed, 15 Nov 2017 15:16:34 +0000 (10:16 -0500)
commitcd8ce3a22c0b48d32ffe6543837ba3bb647ac2b2
treea6f39aee1d21d35a7f1902c7714777311687344b
parentebc189e12259cc28b9a09db000626fea1e2a3ffa
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
13 files changed:
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 [new file with mode: 0644]
src/test/modules/test_session_hooks/Makefile [new file with mode: 0644]
src/test/modules/test_session_hooks/README [new file with mode: 0644]
src/test/modules/test_session_hooks/expected/test_session_hooks.out [new file with mode: 0644]
src/test/modules/test_session_hooks/session_hooks.conf [new file with mode: 0644]
src/test/modules/test_session_hooks/sql/test_session_hooks.sql [new file with mode: 0644]
src/test/modules/test_session_hooks/test_session_hooks--1.0.sql [new file with mode: 0644]
src/test/modules/test_session_hooks/test_session_hooks.c [new file with mode: 0644]
src/test/modules/test_session_hooks/test_session_hooks.control [new file with mode: 0644]