pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Revert hooks for session start and end, take two
Date: Wed, 02 Oct 2019 01:13:43 +0000
Message-ID: <E1iFTD5-0001YV-AR@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9555cc8d2b02c4191d67ba39f589b39b01735518

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       |  23 ---
src/test/modules/test_session_hooks/README         |  11 --
.../expected/test_session_hooks.out                |  37 -----
.../modules/test_session_hooks/session_hooks.conf  |   2 -
.../test_session_hooks/sql/test_session_hooks.sql  |  19 ---
.../test_session_hooks/test_session_hooks.c        | 155 ---------------------
11 files changed, 271 deletions(-)



Message-ID: <E1iFTD5-0001YV-AR@gemulon.postgresql.org>
Permalink:  ../E1iFTD5-0001YV-AR@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iFTD5-0001YV-AR@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Revert hooks for session start and end, take two
  In-Reply-To: <E1iFTD5-0001YV-AR@gemulon.postgresql.org>
  References: <E1iFTD5-0001YV-AR@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