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 1kxvTy-0003S4-B3 for pgsql-general@arkaria.postgresql.org; Fri, 08 Jan 2021 17:23:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kxvTx-0006ia-0f for pgsql-general@arkaria.postgresql.org; Fri, 08 Jan 2021 17:23:25 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kxvTw-0006iT-PD for pgsql-general@lists.postgresql.org; Fri, 08 Jan 2021 17:23:24 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kxvTt-0008S4-1E for pgsql-general@postgresql.org; Fri, 08 Jan 2021 17:23:23 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 7EA0023BBDA23 for ; Fri, 8 Jan 2021 10:23:19 -0700 (MST) Date: Fri, 8 Jan 2021 10:23:19 -0700 (MST) From: legrand legrand To: pgsql-general@postgresql.org Message-ID: <1610126599516-0.post@n3.nabble.com> In-Reply-To: <5f752f45-67ff-456b-5904-14b1782576bd@gmx.net> References: <99277f39-f1a1-6da5-176c-3def058cf568@gmx.net> <999c4e39-ec8d-35db-f77e-06361861fe4e@gmx.net> <5f752f45-67ff-456b-5904-14b1782576bd@gmx.net> Subject: Re: Suggestion: provide a "TRUNCATE PARTITION" command MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk What is interesting here with the TRUNCATE WHERE (and in the proposed plpgsql) is to offer the end user a way to perform a transparent truncate or delete totally independent of the partitioning scheme (if any, or even if it has changed). -- Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html