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 1hC9Vf-0001nM-9l for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Apr 2019 21:02:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hC9Vd-0003zS-B9 for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Apr 2019 21:02:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hC9Vc-0003zK-QZ for pgsql-hackers@lists.postgresql.org; Thu, 04 Apr 2019 21:02:53 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hC9VZ-0003G7-HW for pgsql-hackers@lists.postgresql.org; Thu, 04 Apr 2019 21:02:51 +0000 Received: by mail-qt1-x844.google.com with SMTP id z16so5031790qtn.4 for ; Thu, 04 Apr 2019 14:02:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=NlL0ZHSND7lPKQWO2f2dRbQFvt329carqFDxCQdNiXI=; b=tWT1HKJYflkKiRdH9jViWZwqs6WP3JbMkGrWgMdtJQyHZ1uoDU5GJ0vj6vUvvpMb8Y N+7OpYe4n8IwVJh33C8bMYwnjm7m3onCZunqOf344JYzQ/m7Lm5i9neU9qZeFgk+Cdgc pp8v7xohxyPnU5YWJGtmkp7YfGyeuUUTmvbiiwuTIv9sSwkcKNrpqAWFSa4Ux4ejlsB/ EiLYNVqIDmYbNy0N8RBeQMQUwiDaPb/W3KNNfJTpSNsKdEdv/J6K9CkWHuAbWapFf2d/ 91vqr7063kAcFotFumWFKDC/NPol0HidloIObwfqLIfbsJTfZCeH0cY9QnYDeVVMHr56 54TA== 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:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=NlL0ZHSND7lPKQWO2f2dRbQFvt329carqFDxCQdNiXI=; b=kYc90pNcEpYyyCrqcATNP7pBfPVanNQuVtzb/Y+0a5TpdH64+3MzgB+aqWyZ7we6GK pPgsGOudGB2zTe96nay8N0tZFPTajFBJyTpWG+29A1TBgZ6zjyqL0BVGkrGKnrWy0PyX DwglQTSCyecdYQElEhqQ8kCZcYHM1qdL5TShADPY7c3N3Nas15oqOyITQcjQT0fe3bwH 3/ZvV52hF095nfhZ/3DI+27gfU99zGDTgXGrgPnICtpBCafPpIAJFzttVn4uw/RRbW1P YjjtEWS9Xbix2hEcEDEVEQ9+q66Znvb0H/2hCa1iojj3/UVbolBu2GKIAj7knXZFWC7O Coiw== X-Gm-Message-State: APjAAAWWZk4rmQCXNEZ5+ipCxuxHFe/IMn9aATNAoPBsgfP8dnHA4vCy 9F5zlXYmRR8RKW1SE0ss2iWvGg== X-Google-Smtp-Source: APXvYqyKnGbHiMcGvG/RL37mVS/onhTL2W2b1R0zz84mp+Fdyy82ipqj/ldslknXPlGEkoZZm0tXMQ== X-Received: by 2002:a0c:b7a5:: with SMTP id l37mr6873250qve.94.1554411768681; Thu, 04 Apr 2019 14:02:48 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id w9sm9952978qkf.94.2019.04.04.14.02.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Apr 2019 14:02:47 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id BE6B21246D2; Thu, 4 Apr 2019 18:02:45 -0300 (-03) Date: Thu, 4 Apr 2019 18:02:45 -0300 From: Alvaro Herrera To: Peter Eisentraut Cc: Simon Riggs , Michael Paquier , Robert Haas , Pg Hackers Subject: Re: propagating replica identity to partitions Message-ID: <20190404210245.GA20701@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <260477b8-ba7e-b0c2-580e-735bdd6e9591@2ndquadrant.com> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Mar-29, Peter Eisentraut wrote: > On 2019-03-28 18:16, Simon Riggs wrote: > > SET TABLESPACE should not recurse because it copies the data, while > > holding long locks. If that was ever fixed so it happened concurrently, > > I would agree this could recurse by default. > > Since a partitioned table has no storage, what is the meaning of moving > a partitioned table to a different tablespace without recursing? Changing the tablespace of a partitioned table currently means to set a default tablespace for partitions created after the change. Robert proposed to change it so that it means to move every partition to that tablespace, unless ONLY is specified. Simon objects to that change. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services