Re: Autovacuum and idle_session_timeout

From: Guillaume Lelarge <guillaume(at)lelarge(dot)info>
To: Japin Li <japinli(at)hotmail(dot)com>
Cc: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Autovacuum and idle_session_timeout
Date: 2021-12-30 10:53:37
Message-ID: CAECtzeVVTEQ2L12uMZQzoMc7mwTagWcKPqfw9QUGY5Y-kbP__Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Le jeu. 30 déc. 2021 à 11:44, Japin Li <japinli(at)hotmail(dot)com> a écrit :

>
> On Thu, 30 Dec 2021 at 17:18, Guillaume Lelarge <guillaume(at)lelarge(dot)info>
> wrote:
> > Hello,
> >
> > I've been reading the autovacuum code (the launcher and the worker) on
> the
> > 14 branch. As previously, I've seen some configuration at the beginning,
> > especially for statement_timeout, lock_timeout and
> > idle_in_transaction_session_timeout, and I was surprised to discover
> there
> > was no configuration for idle_session_timeout. I'm not sure the code
> should
> > set it to 0 as well (otherwise I'd have written a patch), but, if there
> was
> > a decision made to ignore its value, I'd be interested to know the
> reason.
> > I could guess for the autovacuum worker (it seems to work in a
> transaction,
> > so it's already handled by the idle_in_transaction_timeout), but I have
> no
> > idea for the autovacuum launcher.
> >
> > If it was just missed, I could write a patch this week to fix this.
> >
>
> Oh, it was just missed. I didn't note set autovacuum code set those
> settings,
> I think we should also set idle_session_timeout to 0.
>
> Should we also change this for pg_dump and pg_backup_archiver?
>
>
pg_dump works in a single transaction, so it's already dealt with
idle_in_transaction_timeout. Though I guess setting both would work too.

--
Guillaume.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joel Jacobson 2021-12-30 10:56:02 Re: Foreign key joins revisited
Previous Message Japin Li 2021-12-30 10:44:23 Re: Autovacuum and idle_session_timeout