pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Dunstan <andrew@dunslane.net>
To: pgsql-committers@postgresql.org
Subject: pgsql: Add hooks for session start and session end
Date: Wed, 15 Nov 2017 15:25:34 +0000
Message-ID: <E1eEzZG-0001kP-KI@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/cd8ce3a22c0b48d32ffe6543837ba3bb647ac2b2

Modified Files
--------------
src/backend/tcop/postgres.c                        |   6 +
src/backend/utils/init/postinit.c                  |   6 +
src/include/tcop/tcopprot.h                        |   7 ++
src/test/modules/Makefile                          |   1 +
src/test/modules/test_session_hooks/.gitignore     |   4 +
src/test/modules/test_session_hooks/Makefile       |  21 ++++
src/test/modules/test_session_hooks/README         |   2 +
.../expected/test_session_hooks.out                |  31 +++++
.../modules/test_session_hooks/session_hooks.conf  |   2 +
.../test_session_hooks/sql/test_session_hooks.sql  |  12 ++
.../test_session_hooks/test_session_hooks--1.0.sql |   4 +
.../test_session_hooks/test_session_hooks.c        | 134 +++++++++++++++++++++
.../test_session_hooks/test_session_hooks.control  |   3 +
13 files changed, 233 insertions(+)



view thread (29+ messages)  latest in thread

Message-ID: <E1eEzZG-0001kP-KI@gemulon.postgresql.org>
Permalink:  ../E1eEzZG-0001kP-KI@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eEzZG-0001kP-KI@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: andrew@dunslane.net
  Subject: Re: pgsql: Add hooks for session start and session end
  In-Reply-To: <E1eEzZG-0001kP-KI@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox