Re: idle transactions vs memory

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Atul Kumar <akumar14871(at)gmail(dot)com>, pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: idle transactions vs memory
Date: 2020-12-07 08:47:46
Message-ID: b97c85269fd11ca29d06f50a2d51757b9e9b85d7.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Yambu 2020-12-07 09:17:16 multi Master environments
Previous Message David G. Johnston 2020-12-07 05:41:32 Re: idle transactions vs memory