Re: Hooks for session start and end, take two

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: "tsunakawa.takay@fujitsu.com" <tsunakawa.takay@fujitsu.com>
Cc: 'Andres Freund' <andres@anarazel.de>, 'Fujii Masao' <masao.fujii@gmail.com>, 'Fabrízio de Royes Mello' <fabriziomello@gmail.com>, 'legrand legrand' <legrand_legrand@hotmail.com>, 'Tom Lane' <tgl@sss.pgh.pa.us>, 'Alvaro Herrera' <alvherre@2ndquadrant.com>, 'Pgsql Hackers' <pgsql-hackers@postgresql.org>
Date: 2019-12-20T07:20:18Z
Lists: pgsql-hackers
On Fri, Dec 20, 2019 at 02:45:26AM +0000, tsunakawa.takay@fujitsu.com wrote:
> I've got interested in this.  What's the current status of this
> patch?  The CF entry shows it was committed.
>
> But I understood not, because the relevant code doesn't appear in
> HEAD, and Git log shows that it was reverted.  Am I correct? 

The patch has been committed once as of e788bd9, then reverted as of
9555cc8 because it had a couple of fundamental issues and many people
were not happy with it.  The latest discussions point out to some more
advanced designs based on callbacks at certain points of a session
lifetime.  You may want to double-check on that first.
--
Michael

Commits

  1. Add hooks for session start and session end, take two