agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: hubert depesz lubaczewski <depesz@depesz.com>
To: aditya desai <admad123@gmail.com>
Cc: pgsql-sql <pgsql-sql@lists.postgresql.org>
Subject: Re: Create trigger on after logon on schema
Date: Wed, 6 Oct 2021 17:44:44 +0200
Message-ID: <20211006154444.GB2265@depesz.com> (raw)
In-Reply-To: <CAN0SRDFZ-cDbuiu-_8oA4W1pU_oYkksydj8f2o7+O7XUwUfN4w@mail.gmail.com>
References: <CAN0SRDFZ-cDbuiu-_8oA4W1pU_oYkksydj8f2o7+O7XUwUfN4w@mail.gmail.com>

On Wed, Oct 06, 2021 at 08:52:45PM +0530, aditya desai wrote:
> Hi,
> Is there any way to write below Oracle trigger in postgres?
> 
> CREATE TRIGGER T1 after logon on schema for each row
> execute procedure p1;

What did it do?

Please note that not everyone knowing Pg knows Oracle.

I can imagine that trigger after logon means that p1 procedure will be
called after user successfully logs in, but what does the "for each row"
part mean?

In PG, there are no login triggers. And, in any case, noone logs to
"schema".

Best regards,

depesz






view thread (9+ messages)  latest in thread

Message-ID: <20211006154444.GB2265@depesz.com>
Permalink:  ../20211006154444.GB2265@depesz.com/
Also on:    postgresql.org/message-id/20211006154444.GB2265@depesz.com

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: depesz@depesz.com, admad123@gmail.com, pgsql-sql@lists.postgresql.org
  Subject: Re: Create trigger on after logon on schema
  In-Reply-To: <20211006154444.GB2265@depesz.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox