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 1hIeY0-0007qW-NI for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Apr 2019 19:24:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hIeXy-0007RD-62 for pgsql-hackers@arkaria.postgresql.org; Mon, 22 Apr 2019 19:24:10 +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 1hIeXx-0007R6-QY for pgsql-hackers@lists.postgresql.org; Mon, 22 Apr 2019 19:24:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hIeXv-000711-B8 for pgsql-hackers@lists.postgresql.org; Mon, 22 Apr 2019 19:24:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x3MJO2AT022943; Mon, 22 Apr 2019 15:24:02 -0400 From: Tom Lane To: Alvaro Herrera cc: Andres Freund , Robert Haas , David Rowley , PostgreSQL Hackers Subject: Re: pg_dump is broken for partition tablespaces In-reply-to: <20190422190813.GA30369@alvherre.pgsql> References: <20190422190813.GA30369@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Mon, 22 Apr 2019 15:08:13 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22941.1555961042.1@sss.pgh.pa.us> Date: Mon, 22 Apr 2019 15:24:02 -0400 Message-ID: <22942.1555961042@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2019-Apr-22, Andres Freund wrote: >> Why is the obvious answer is to not just remove the whole tablespace >> inheritance behaviour? > Because it was requested by many, and there were plenty of people > surprised that things didn't work that way. There are lots of things in SQL that people find surprising. In this particular case, "we can't do it because it conflicts with ancient decisions about how PG tablespaces work" seems like a defensible answer, even without getting into the question of whether "partitions inherit their tablespace from the parent" is really any less surprising than "partitions work exactly like normal tables as far as tablespace selection goes". regards, tom lane