Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hdxuw-0005i4-7X for pgsql-general@arkaria.postgresql.org; Thu, 20 Jun 2019 14:19:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hdxuu-0008Ju-S0 for pgsql-general@arkaria.postgresql.org; Thu, 20 Jun 2019 14:19:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hdxuu-0008Jn-HB for pgsql-general@lists.postgresql.org; Thu, 20 Jun 2019 14:19:56 +0000 Received: from new4-smtp.messagingengine.com ([66.111.4.230]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hdxur-0006nL-OU for pgsql-general@lists.postgresql.org; Thu, 20 Jun 2019 14:19:56 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.nyi.internal (Postfix) with ESMTP id 735AD18DF; Thu, 20 Jun 2019 10:19:51 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 20 Jun 2019 10:19:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=relops.com; h= from:content-type:content-transfer-encoding:mime-version:subject :message-id:date:to; s=mesmtp; bh=Lk+lD+SAGDKGuJz9JfGSFp5jzPqpiO 0IQY4EB/NQtyk=; b=vvjFuzI4R5x8H3ejSua6wEUPvI2FXOFvN/B8xZk+Etv022 dGIpUUjls879ee6bY0RCVs40/1mxgXF2jRnPAiRcRs1MxcP8NilZ90wClshELrDn s5GN6CsUp5neG3SKQXAtmGOZUEmA5wPCXDw41t6sVRTVrDuxtGe/2JhQMYvPQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=Lk+lD+ SAGDKGuJz9JfGSFp5jzPqpiO0IQY4EB/NQtyk=; b=zV7xnPG9AAsbGtpsy4TaWa M6abO/1BC9lXO75rDXma8Hx149NXn0xifO5+z8m/AyUjrLiVJ8+hMxdxC7qY3fld 7wktcejtmVXfa8ewjqoG37qtqeRERCr1Xh1bJGOfU35XnnFGHAHk+cT8kUeAVDmv GBxtkLAokgOkH2vuN0aAWDXC4ZVncVSJn4bvr1j25O183yCLUKODz9rB/Wr7xVIh VHZKcByiCTU+IWLM81e+v8eFkgzyWasDrMQmQGMzgEYt7Hp0UXZM1nQmfQ6kzZ0D n61rmXnIeMQELhT/qS3uPvEX2b8JMg/Jyiv3eMQh/Rqj0YZEePFvnE1yjGCK9lLg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrtdeggdejjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecuogfrhhhishhhihhnghdqkfhppfgvthifohhrkhculd eftddtmdenucfjughrpefhtgfgggfukfffvffosehtqhhmtdhhtdejnecuhfhrohhmpeeu vghnucfjohhougcuoegsvghnsehrvghlohhpshdrtghomheqnecuffhomhgrihhnpehpoh hsthhgrhgvshhqlhdrohhrghenucfkphepudejkedrvddtkedrudeiuddrfeelnecurfgr rhgrmhepmhgrihhlfhhrohhmpegsvghnsehrvghlohhpshdrtghomhenucevlhhushhtvg hrufhiiigvpedt X-ME-Proxy: Received: from [178.208.161.39] (unknown [178.208.161.39]) by mail.messagingengine.com (Postfix) with ESMTPA id C649C38008B for ; Thu, 20 Jun 2019 10:19:50 -0400 (EDT) From: Ben Hood Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Detaching multiple partitions in 1 ALTER TABLE statement Message-Id: Date: Thu, 20 Jun 2019 15:19:48 +0100 To: pgsql-general@lists.postgresql.org X-Mailer: Apple Mail (2.3445.104.11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, I=E2=80=99m wondering what is the syntax for detaching multiple = partitions in 1 ALTER TABLE statement. I=E2=80=99ve tried this: # ALTER TABLE movement_legs DETACH PARTITION = movement_legs_2019_06_20_11_15, DETACH PARTITION = movement_legs_2019_06_20_11_20; psql: ERROR: syntax error at or near "," LINE 1: ...gs DETACH PARTITION movement_legs_2019_06_20_11_15, DETACH = P=E2=80=A6 The documentation suggests "DETACH PARTITION can be combined into a list = of multiple alterations to be applied together=E2=80=9D: https://www.postgresql.org/docs/12/sql-altertable.html But I haven=E2=80=99t found an example of where multiple partitions are = detached in 1 statement. This is using version 12 beta 1. Many thanks, Ben