Revert hooks for session start and end, take two

Michael Paquier <michael@paquier.xyz>

Commit: 9555cc8d2b02c4191d67ba39f589b39b01735518
Author: Michael Paquier <michael@paquier.xyz>
Date: 2019-10-02T00:55:27Z
Releases: 13.0
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

Files

Discussion

Cited messages not in the archive: 18722.1569906636@sss.pgh.pa.us