pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: David G. Johnston <david.g.johnston@gmail.com>
To: Dominique Devienne <ddevienne@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: DROP OWNED BY fails with #53200: ERROR: out of shared memory
Date: Mon, 10 Jan 2022 13:28:47 -0800
Message-ID: <6a7ed4b9-54be-3ec7-0965-a20a2c7a5ecf@aklaver.com> (raw)
In-Reply-To: <CAKFQuwagvaUqqj1hyQXMU8Koqzj0ZK6Q61DJDvYzn-dw0otT9A@mail.gmail.com>
References: <CAFCRh-9jU41R3WV0BOAf55KFuN4_ePzQ_TBjeDMq82e0yic7DA@mail.gmail.com>
	<2208869.1641836366@sss.pgh.pa.us>
	<CAFCRh-_MOjdz8M-wOL-xZiLrUtUkE_q6iAcNxPXg8xRxyBJffA@mail.gmail.com>
	<CAFCRh--no2WL5OhSndVo=dkCfA7OAoEDd7wJPqj+QAxp7TqnaA@mail.gmail.com>
	<CAKFQuwagvaUqqj1hyQXMU8Koqzj0ZK6Q61DJDvYzn-dw0otT9A@mail.gmail.com>

On 1/10/22 13:08, David G. Johnston wrote:
> On Mon, Jan 10, 2022 at 12:09 PM Dominique Devienne <ddevienne@gmail.com 
> <mailto:ddevienne@gmail.com>> wrote:
> 
>     Given |max_locks_per_transaction| * (max_connections
>     <https://www.postgresql.org/docs/current/runtime-config-connection.html#GUC-MAX-CONNECTIONS> +
>     max_prepared_transactions
>     <https://www.postgresql.org/docs/current/runtime-config-resource.html#GUC-MAX-PREPARED-TRANSACTIONS;)
>     from
>     https://www.postgresql.org/docs/current/runtime-config-locks.html
>     <https://www.postgresql.org/docs/current/runtime-config-locks.html;,
>     and max_conn being 100, that's not many locks.
> 
>     Tom wrote "relation" for the number of locks necessary for DROP
>     OWNED BY.
>     What does it mean in this context? relation = table?
> 
> 
> 
> I'm confused here a bit as well.  The items being talked about are 
> tables and indexes, both of which manifest as files on the filesystem.  
> But not all relations do (e.g., views).  But if this isn't tied to the 
> filesystem then I would expect that other object types, especially 
> functions, would require locking as well, but those are decidedly not 
> relations.

Pretty sure this is related to:

https://www.postgresql.org/docs/current/explicit-locking.html

In other words to locks on data access.


> 
>         How do I determine the current value, and change it?
> 
> 
> https://www.postgresql.org/docs/current/runtime-config.html 
> <https://www.postgresql.org/docs/current/runtime-config.html;
> (you already used the SHOW command to determine the current value)
> 
> David J.
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (19+ messages)  latest in thread

Message-ID: <6a7ed4b9-54be-3ec7-0965-a20a2c7a5ecf@aklaver.com>
Permalink:  ../6a7ed4b9-54be-3ec7-0965-a20a2c7a5ecf@aklaver.com/
Also on:    postgresql.org/message-id/6a7ed4b9-54be-3ec7-0965-a20a2c7a5ecf@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, david.g.johnston@gmail.com, ddevienne@gmail.com
  Subject: Re: DROP OWNED BY fails with #53200: ERROR: out of shared memory
  In-Reply-To: <6a7ed4b9-54be-3ec7-0965-a20a2c7a5ecf@aklaver.com>
  References: <CAFCRh-9jU41R3WV0BOAf55KFuN4_ePzQ_TBjeDMq82e0yic7DA@mail.gmail.com> <2208869.1641836366@sss.pgh.pa.us> <CAFCRh-_MOjdz8M-wOL-xZiLrUtUkE_q6iAcNxPXg8xRxyBJffA@mail.gmail.com> <CAFCRh--no2WL5OhSndVo=dkCfA7OAoEDd7wJPqj+QAxp7TqnaA@mail.gmail.com> <CAKFQuwagvaUqqj1hyQXMU8Koqzj0ZK6Q61DJDvYzn-dw0otT9A@mail.gmail.com> <6a7ed4b9-54be-3ec7-0965-a20a2c7a5ecf@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox