Support event trigger for logoff

From: Japin Li <japinli(at)hotmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Cc: Song JinZhou <tsinghualucky912(at)foxmail(dot)com>
Subject: Support event trigger for logoff
Date: 2024-04-19 15:46:10
Message-ID: ME3P282MB316614DBFF1CB7F7EB4C6C0AB60D2@ME3P282MB3166.AUSP282.PROD.OUTLOOK.COM
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


Hi, hackers

I see [1] has already implemented on login event trigger, why not implement
the logoff event trigger?

My friend Song Jinzhou and I try to implement the logoff event trigger, so
attach it.

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?

[1] https://www.postgresql.org/message-id/0d46d29f-4558-3af9-9c85-7774e14a7709%40postgrespro.ru

--
Regards,
Japin Li

Attachment Content-Type Size
v1-0001-Add-support-event-triggers-for-logoff.patch text/x-diff 25.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2024-04-19 15:47:07 Re: pg_combinebackup does not detect missing files
Previous Message Nathan Bossart 2024-04-19 15:43:22 Re: allow changing autovacuum_max_workers without restarting