Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mY969-0001so-0O for pgsql-sql@arkaria.postgresql.org; Wed, 06 Oct 2021 15:44:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mY967-0005vL-LC for pgsql-sql@arkaria.postgresql.org; Wed, 06 Oct 2021 15:44:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mY967-0005vD-EI for pgsql-sql@lists.postgresql.org; Wed, 06 Oct 2021 15:44:47 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mY965-0007er-Jo for pgsql-sql@lists.postgresql.org; Wed, 06 Oct 2021 15:44:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=FIAgEtTo/Sdou+O0izDlcmUIupyvjqtY99syRaRdBB0=; b=nlRkLvdRUu6iWNWgB7Aemo6gvq JtFB0eXRGljMEi+4kRJEM68lztqvI35HFLXcsPlB8b3VsRGCvaNrla8GDn8Zsj0ml/+tXPrXop5dr 7Ze9Ejje1ZlsWq/i5efFGgxzqP2r1PQQt9SSL5U80KNLVlM5cafJQuNrlG9ZipPiuhNU=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1mY964-00027d-Od; Wed, 06 Oct 2021 17:44:44 +0200 Date: Wed, 6 Oct 2021 17:44:44 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: aditya desai Cc: pgsql-sql Subject: Re: Create trigger on after logon on schema Message-ID: <20211006154444.GB2265@depesz.com> Reply-To: depesz@depesz.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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