From: | Giorgio Saviane <gsaviane(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Francisco Olarte <folarte(at)peoplecall(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | Re: BUG #16614: Stale temporary objects makes vacuum ineffective when 1 million transactions remain |
Date: | 2020-09-12 18:38:29 |
Message-ID: | CAHs6c0eK9EctDoffiMU6=M=ct4+Pr5+OiZ00CjxS23C8s8J+CA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The connection pooler is a component embedded in the Tomcat container. When
Tomcat stops the connection pooler gets shut down too. We can tell it by
the number of Postgres processes that disappear from htop.
We never touch autovacuum settings, they are kept to the default.
Kind regards
Giorgio Saviane
Il giorno sab 12 set 2020 alle ore 20:18 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> ha
scritto:
> Giorgio Saviane <gsaviane(at)gmail(dot)com> writes:
> > Ok, let me add one more step in that sequence.
> > Before shutting down Postgres and going down to single mode we stopped
> the
> > application server and other services around it. I'm pretty sure that
> there
> > was a reasonable window of time before we went to single mode.
>
> Hmm, but did you stop the connection pooler? That's what was holding
> the database session open, if I'm understanding things correctly.
>
> Unless you've changed the default autovacuum settings (particularly
> autovacuum_naptime), I'd have expected autovacuum to start zapping
> temp tables within a minute or so after they become orphaned.
> Even more to the point, if the database session was allowed to stop
> normally, it should've cleaned them up itself.
>
> regards, tom lane
>
From | Date | Subject | |
---|---|---|---|
Next Message | PG Bug reporting form | 2020-09-13 00:28:45 | BUG #16615: Cannot determine type of Date for "is null" expression |
Previous Message | Tom Lane | 2020-09-12 18:18:04 | Re: BUG #16614: Stale temporary objects makes vacuum ineffective when 1 million transactions remain |