Re: Support event trigger for logoff

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Japin Li <japinli(at)hotmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Song JinZhou <tsinghualucky912(at)foxmail(dot)com>
Subject: Re: Support event trigger for logoff
Date: 2024-04-19 17:36:34
Message-ID: 2174635.1713548194@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Japin Li <japinli(at)hotmail(dot)com> writes:
> I see [1] has already implemented on login event trigger, why not implement
> the logoff event trigger?

What happens if the session crashes, or otherwise fails unexpectedly?

> Here is a problem with the regression test when using \c to create a new
> session, because it might be running concurrently, which may lead to the
> checking being unstable.

> Any thoughts?

Let's not go there at all. I don't think there's enough field
demand to justify dealing with this concept.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2024-04-19 17:57:41 subscription/026_stats test is intermittently slow?
Previous Message Robert Haas 2024-04-19 17:02:16 Re: Support a wildcard in backtrace_functions