Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sUoYS-005rUJ-LP for pgsql-general@arkaria.postgresql.org; Fri, 19 Jul 2024 14:25:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sUoYQ-00050j-KZ for pgsql-general@arkaria.postgresql.org; Fri, 19 Jul 2024 14:25:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sUoYQ-00050b-9e for pgsql-general@lists.postgresql.org; Fri, 19 Jul 2024 14:25:50 +0000 Received: from feynman.df7cb.de ([195.49.152.168]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sUoYO-000OaO-43 for pgsql-general@lists.postgresql.org; Fri, 19 Jul 2024 14:25:50 +0000 Received: from msg.df7cb.de (unknown [IPv6:2a02:908:1480:91e0:e5dd:5ff4:a196:e226]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by feynman.df7cb.de (Postfix) with ESMTPSA id 4WQX5l4MJ6z3F4W; Fri, 19 Jul 2024 16:25:47 +0200 (CEST) Date: Fri, 19 Jul 2024 16:25:47 +0200 From: Christoph Berg To: Durgamahesh Manne Cc: pgsql-general@lists.postgresql.org, pgsql-in-general@postgresql.org Subject: Re: Fwd: Regarding tables detach concurrently with run_maintenance_proc() Message-ID: Mail-Followup-To: Christoph Berg , Durgamahesh Manne , pgsql-general@lists.postgresql.org, pgsql-in-general@postgresql.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Re: Durgamahesh Manne > with pg_partman By default proc() does not detach tables concurrently. How > do we implement tables detach concurrently without blocking other sessions > Here queries not using date column to detach tables with > run_maintenance_proc() which is not using concurrently based on the > retention policy which leads to scan all available child tables hence need > to trigger this proc with concurrently option to avoid blocking other child > tables beyond rentention policy while running statements on them You might have more success by filing pg_partman issues at https://github.com/pgpartman/pg_partman/issues > Do we have any other alternative rather than using pg_partman()? Well you can just run the same commands manually that pg_partman would run. Christoph