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