Re: LWLocks by LockManager slowing large DB

From: Andres Freund <andres(at)anarazel(dot)de>
To: Paul Friedman <paul(dot)friedman(at)streetlightdata(dot)com>
Cc: pgsql-performance(at)lists(dot)postgresql(dot)org
Subject: Re: LWLocks by LockManager slowing large DB
Date: 2021-04-13 20:48:06
Message-ID: 20210413204806.v4y5luxzaozmbafg@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Hi,

On 2021-04-13 11:47:06 -0700, Paul Friedman wrote:
> YES!!! This completely alleviates the bottleneck and I'm able to run the
> queries full-throttle. Thank you SO much for your help+insight.

Cool. And damn: I can't immediately think of a way to optimize this to
not require this kind of hack in the future.

> Interestingly, "lock pg_toast.pg_toast_2233612264 in ACCESS SHARE MODE;"
> which should do the same thing returns an error " ERROR:
> "pg_toast_2233612264" is not a table or view"
>
> Sounds like I should file this as a requested improvement?

The ability to lock a toast table? Yea, it might be worth doing that. I
seem to recall this being discussed not too long ago...

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Alvaro Herrera 2021-04-13 20:54:59 Re: LWLocks by LockManager slowing large DB
Previous Message Paul Friedman 2021-04-13 18:47:06 RE: LWLocks by LockManager slowing large DB