Re: idle transactions vs memory - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: idle transactions vs memory
Date
Msg-id b97c85269fd11ca29d06f50a2d51757b9e9b85d7.camel@cybertec.at
Whole thread Raw
In response to Re: idle transactions vs memory  (Atul Kumar <akumar14871@gmail.com>)
List pgsql-admin
On Mon, 2020-12-07 at 11:04 +0530, Atul Kumar wrote:
> The transactions state is 'idle' from more than 15 minutes, so my
> question is that are they occupying any amount of RAM?
> 
> are these 'idle' transactions are using CPU ?

They are not using any CPU, and they are using very little RAM.

They make starting a query (taking a snapshot) a little slower,
but you probably won't notice that.

Their biggest danger is that there is no guarantee that they
remain idle, and if you have too many active sessions, your database
might have more work than it can handle.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com




pgsql-admin by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: idle transactions vs memory
Next
From: Yambu
Date:
Subject: multi Master environments