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 1kT3fO-0001js-3I for pgsql-general@arkaria.postgresql.org; Thu, 15 Oct 2020 13:51:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kT3fN-0003fd-1Q for pgsql-general@arkaria.postgresql.org; Thu, 15 Oct 2020 13:51:37 +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 1kT3fM-0003fW-QT for pgsql-general@lists.postgresql.org; Thu, 15 Oct 2020 13:51:36 +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 1kT3fK-0004HJ-TE for pgsql-general@lists.postgresql.org; Thu, 15 Oct 2020 13:51:36 +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=83FUpbcNURdVLSBUsrQDPvq+UtA5w8dP0/WjdR4Pth4=; b=OUrHDetFeVXIW64qCLqgrXqwcn JXg6jf/GLYTEIPdRPc2tLKynseMlcabWCha6K71u7tdwFzbV4l+7C8j9y4hofYwGfOT0xAIJ/wbX1 xxf51INzibJooJ1TDHQgkJVUwOav73ZF0eRfUTQOBdvGbZieMSeC8qNEHk8ldDjXJYSE=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1kT3fJ-0002YZ-Od; Thu, 15 Oct 2020 15:51:33 +0200 Date: Thu, 15 Oct 2020 15:51:33 +0200 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: nandha kumar Cc: pgsql-general@lists.postgresql.org Subject: Re: Need to trace the logs Message-ID: <20201015135133.GB32444@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: Precedence: bulk On Thu, Oct 15, 2020 at 05:25:11PM +0530, nandha kumar wrote: > Hi Team, > We are using a postgresql database with 9.6.1 version, any way to > trace the last modified object, procedure in PostgreSQL. well, you can log all queries, and extract the info from logs. If by "object" you mean table/row - you can do it with triggers. Best regards, depesz