From: Ron <ronljohnsonjr@gmail.com>
To: Forums postgresql <pgsql-general@postgresql.org>
Subject: Trigger when user logs in
Date: Thu, 11 Apr 2019 20:00:00 -0500
Message-ID: <eb44b902-9c08-8489-7d32-79d889d9e229@gmail.com> (raw)
Hi,
PCI auditors have mandated that our databases (all running v9.6) send an
email when certain users log in. Thus, I've been searching for how to do
this, but without much luck.
https://www.postgresql.org/message-id/flat/20170720204733.40f2b7eb.nagata%40sraoss.co.jp
This long thread from almost two years ago seems to point in the right
direction, but then died with "Okay, this has proved to require broader
changes than thought first. I am marking the patch as returned with feedback."
So, is there something that I've missed which lets me write an "on login"
trigger, or do I have to install pgaudit and tail_n_mail?
Thanks
--
Angular momentum makes the world go 'round.
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-general@postgresql.org
Cc: ronljohnsonjr@gmail.com
Subject: Re: Trigger when user logs in
In-Reply-To: <eb44b902-9c08-8489-7d32-79d889d9e229@gmail.com>
References: <eb44b902-9c08-8489-7d32-79d889d9e229@gmail.com>
* 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