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 1k50vy-0006eL-5q for pgsql-general@arkaria.postgresql.org; Mon, 10 Aug 2020 06:05:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1k50vw-0001OZ-NX for pgsql-general@arkaria.postgresql.org; Mon, 10 Aug 2020 06:05:20 +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 1k50vv-0001OS-SC for pgsql-general@lists.postgresql.org; Mon, 10 Aug 2020 06:05:20 +0000 Received: from sonic308-10.consmr.mail.ne1.yahoo.com ([66.163.187.33]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1k50vs-0006Kg-Ng for pgsql-general@lists.postgresql.org; Mon, 10 Aug 2020 06:05:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1597039512; bh=q7tImnq/83ACC+avOJXivS5qsQOXJ7AkkgnB2ZPe//Q=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=iTVzMWaE6WrKm/PZL4sFnR4rcqUIZZuGv/S7NWwg6CbjU5BPYPHEwl97ooDXHDZ4deuRWWs65bZcBLbfSu9VFFWGJDSnaaHzenWSIXZ4CRarQLVRuRzrlb0YuE1dsnHTR33ZWexM5iocGLeLEgpuUoiosTFNbDDzc3Fu7E98QwwR75ulu0fknc6HVNYMyYK4bEzwplO5WdfJcoXVK0Zn6VIZy1mV8s4Rmlmsw6DHGAtJmoli1K8lJK49Q/bf50N7Klpfnq/7S0IVKWpL0HUijfOdALWViZannp9EPn7/JJX9bTwxMHz85Sb0g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Iyp27uth5IpR.eebW.UbjzKE7hB4 tBjFrik3kfbOnj8kKDgWYcx0uFlc7X65zqL5cNr7ero9MOMUKw8GgspAHPWCe8QLmO4Jl1GCGVEG dodSkaw4Rk6MzfRGH6mGVRF4LRCc84wUHGeWo_ZeWIiJhyctuweV2Z4xyiuEVB2VW.Ab1fflJymH SQvojLZ8CSt4.VgKRPhyoyhK_.o8ZfvdYfzodcZptBCIZtBXcBM2qtibtrGpoT6yIZRPNds21yw9 mDlycmN95VmJnSe9uQqe6P1mkXBnGSbxU_R9aWCPwscdfVrPw9CLPlwU.WDJz1mLfqrYYr4WHr.k bgEhFIN.o4eXviH6twSF3rOGCwX4csSg_nGTqUOJRvXnMZZ33fmLVKV8mcKz.FaUBGhRKPDf.bHu PKPSLpPH_dimfrlSF0P1u8uaDs2_bROPJDpXouBwBuKNZ9F51Ozpq3.Ul7bohyFGEgocWp6xiPeb 0Pu99rKEQY2BjEKF4jK309xX2GQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.ne1.yahoo.com with HTTP; Mon, 10 Aug 2020 06:05:12 +0000 Date: Mon, 10 Aug 2020 06:05:12 +0000 (UTC) From: Virendra Kumar Reply-To: Virendra Kumar To: PostgreSQL General Message-ID: <1930665427.2385958.1597039512032@mail.yahoo.com> Subject: xact_start time set to very old value MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2385957_164715461.1597039512031" References: <1930665427.2385958.1597039512032.ref@mail.yahoo.com> X-Mailer: WebService/1.1.16436 YMailNorrin Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Firefox/68.0 Content-Length: 2693 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_2385957_164715461.1597039512031 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Team, We have observed that xact_start time is null for some period and suddenly it populates to very old value. We have a query which runs every minute to report any transactions running for long time. That query reports nothing continuously for a minute before and suddenly it reports one transaction which is running for more than one day. Is there something wrong here in populating xact_start time in pg_stat_activity? Shall we go with any other approach to detect long running transaction in database? Can someone guide on this? I went through a thread - https://www.postgresql.org/message-id/20140424101827.2714.39486%40wrigleys.postgresql.org but not sure where it concluded. Appreciate your response. We are using AWS RDS 11.4. Regards,-Virendra ------=_Part_2385957_164715461.1597039512031 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Team,

We have observed that xact_start time is= null for some period and suddenly it populates to very old value. We have = a query which runs every minute to report any transactions running for long= time. That query reports nothing continuously for a minute before and sudd= enly it reports one transaction which is running for more than one day. Is = there something wrong here in populating xact_start time in pg_stat_activit= y? Shall we go with any other approach to detect long running transaction i= n database? Can someone guide on this?

I went through a thread - https://www.postgresql.org/message-id/201= 40424101827.2714.39486%40wrigleys.postgresql.org but not sure where it = concluded.

Appreciate your response.

= We are using AWS RDS 11.4.

=
Regards,
-Virendra


------=_Part_2385957_164715461.1597039512031--