Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1onHoK-0001QK-V6 for pgsql-general@arkaria.postgresql.org; Tue, 25 Oct 2022 11:09:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1onHoJ-0007JF-QY for pgsql-general@arkaria.postgresql.org; Tue, 25 Oct 2022 11:09:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1onHoJ-0007J6-Fh for pgsql-general@lists.postgresql.org; Tue, 25 Oct 2022 11:09:31 +0000 Received: from mout-u-204.mailbox.org ([80.241.59.204]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1onHoH-0008Lj-8z for pgsql-general@lists.postgresql.org; Tue, 25 Oct 2022 11:09:30 +0000 Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4MxTjK6ctZz9sQm; Tue, 25 Oct 2022 13:09:25 +0200 (CEST) Date: Tue, 25 Oct 2022 13:09:25 +0200 (CEST) From: Erik Wienhold To: Rakesh Nashine , pgsql-general@lists.postgresql.org Message-ID: <568082632.421153.1666696165054@office.mailbox.org> In-Reply-To: References: Subject: Re: How to remove the partition from table . MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On 25/10/2022 12:47 CEST Rakesh Nashine wrote: > > We would like to remove the partition from one of the tables , although that > partition has some business data. Now business doesn't need that partition > any more .. How could we remove it? although they need the data . Detach the partition: https://www.postgresql.org/docs/15/sql-altertable.html#SQL-ALTERTABLE-DETACH-PARTITION -- Erik