Re: [PATCH] Runtime control of CLOBBER_CACHE_ALWAYS

From: Craig Ringer <craig(dot)ringer(at)enterprisedb(dot)com>
To: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
Cc: Craig Ringer <craig(at)2ndquadrant(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Runtime control of CLOBBER_CACHE_ALWAYS
Date: 2021-01-05 23:30:37
Message-ID: CAGRY4nyFzr6RF5hbyRq9JeN2kXd7Z4yU3sMyrRqCwG2DjWDuEw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, 5 Jan 2021, 22:41 Peter Eisentraut, <
peter(dot)eisentraut(at)2ndquadrant(dot)com> wrote:

> On 2020-12-03 07:01, Craig Ringer wrote:
> > To try it out, apply the patch (git am), build with --enable-cassert,
> > then compare:
> >
> > make -C src/test/regress check
> >
> > and
> >
> > PGOPTIONS="-c debug_clobber_cache_depth=1" \
> > make -C src/test/regress check
> >
> > The speed difference will be obvious if nothing else!
>
> This is a really useful feature change. I have a version that I'm happy
> to commit, but I wanted to check on the name of the setting. The
> proposed name arose during the discussion when it was just to set the
> recursion depth but not enable the feature altogether, so I think that
> name is a bit misleading now. We could reuse the old macro name, as in
> clobber_cache_always=N, which is very recognizable. But the feature
> itself doesn't clobber anything (that's done by CLOBBER_FREED_MEMORY),
> so most accurate would be something like
> invalidate_system_caches_always=N. Thoughts?
>

Modulo typo, I think that's a better name.

Perhaps debug_invalidate_system_caches_always ? It's a bit long but we use
the debug prefix elsewhere too.

> --
> Peter Eisentraut
> 2ndQuadrant, an EDB company
> https://www.2ndquadrant.com/
>
>
>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2021-01-05 23:46:01 Re: allow to \dtS+ pg_toast.*
Previous Message Jeff Davis 2021-01-05 23:23:34 Re: Replication protocol pipelining edge case