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 1jQw1X-0001DE-JX for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Apr 2020 16:45:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jQw1W-0001zR-A9 for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Apr 2020 16:45:26 +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 1jQw1V-0001zK-Vx for pgsql-hackers@lists.postgresql.org; Tue, 21 Apr 2020 16:45:26 +0000 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jQw1L-00043O-1r for pgsql-hackers@lists.postgresql.org; Tue, 21 Apr 2020 16:45:25 +0000 Received: by mail-qk1-x72f.google.com with SMTP id l78so15199736qke.7 for ; Tue, 21 Apr 2020 09:45:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2On/yYBXujtiAJHoMb5x/JLxcpYfijqaIyhYWQCWzbY=; b=D19z/i6j8ukGZ7Tp/m58z93F5/KtcMlUxekn3D5dFwEbgKRNZJfZY1jPugrfUfn223 oy4K3xL8Q9y6HE5w4iTiFYuONijwr/98nBhHEp/BGvZ4JA9ksJfaq4J4ZMOuNJ09SSOJ ON2Wwpdh/wx/YYwzpG7pebVzYeCdRqMBq/X9YPp+L3oaPufp15c7H9HewhfKFOvs74NL 6ciqj6gkfn8AYP+Zo0hKpwdQelRIIlMjhD+Hp1p21A6AnIKPBxJ9z9NX3D4yKOGCL8ke Vq6ppW/DQyW8sF1070Y6eR5UHguchak68udk4wRFM6rp/Ws2VSJWHtQdZ89g44LRAWhf CF7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2On/yYBXujtiAJHoMb5x/JLxcpYfijqaIyhYWQCWzbY=; b=DLEWMgjKAMeHOd4EEb86janPFAK7PszOa/xu5QknGqOjY2gjK82H7Rv5ONwiQjUsJd gjXEUj0Y0EJ+VIl4alMZ59TZXIAMkhUzsOE5i0Ox7mq8Ahd6Pje3jLOwJX5CzHIEY/sC pQdj8O+AdQ6379nHVtz9VhhjzPRqE666nifP5sRYTFnX37U9fQQ6cdnODgXCl88sbrFr 7UG2IM2t93EDj3x9Ek+NtuVJWs2k/vMcDBfZyaPmyHoDRTzq04SxN/RL65MMjULDUqBw +smw7Uvq02lHjjS8jCvOazPPA+qvpuEpPFrc/GOJf72X1zv3TrooWjlnUjcyLvekiRu1 D0Vg== X-Gm-Message-State: AGi0PuZiG1EYXLHo/r8GQD6FJK53ISANIdo/pexbwcxRMVZh/YLj/Zw0 bJ07576JHe2YbAb83U3Dy+5ECg== X-Google-Smtp-Source: APiQypLvqStBC/gv5UXIWwktxD85t29Q4TDfcZOiizoSIV6uVJWQtUpODUfdEiOIZvOnlAUkZX0ijw== X-Received: by 2002:a37:aacc:: with SMTP id t195mr22382353qke.464.1587487513398; Tue, 21 Apr 2020 09:45:13 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id f188sm2059530qkd.101.2020.04.21.09.45.12 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Apr 2020 09:45:12 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id C82CD800B38; Tue, 21 Apr 2020 11:45:10 -0500 (CDT) Date: Tue, 21 Apr 2020 11:45:10 -0500 From: Justin Pryzby To: Alvaro Herrera Cc: Amit Langote , Tom Lane , pgsql-hackers@lists.postgresql.org Subject: Re: DETACH PARTITION and FOR EACH ROW triggers on partitioned tables Message-ID: <20200421164510.GJ3890@telsasoft.com> References: <20200421154553.GA21155@alvherre.pgsql> <20200421162038.GA18628@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200421162038.GA18628@alvherre.pgsql> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Tue, Apr 21, 2020 at 12:20:38PM -0400, Alvaro Herrera wrote: > diff --git a/doc/src/sgml/ref/alter_table.sgml b/doc/src/sgml/ref/alter_table.sgml > index 7595e609b5..233905552c 100644 > --- a/doc/src/sgml/ref/alter_table.sgml > +++ b/doc/src/sgml/ref/alter_table.sgml > @@ -941,13 +943,14 @@ WITH ( MODULUS numeric_literal, REM > DETACH PARTITION partition_name > > > This form detaches specified partition of the target table. The detached > partition continues to exist as a standalone table, but no longer has any > ties to the table from which it was detached. Any indexes that were > - attached to the target table's indexes are detached. > + attached to the target table's indexes are detached. Any triggers that > + were created to mirror those in the target table are removed. Can you say "cloned" here instead of mirror ? > + attached to the target table's indexes are detached. Any triggers that > + were created as clones of triggers in the target table are removed. Also, I see in the surrounding context a missing word? This form detaches THE specified partition of the target table. -- Justin