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 1hFizS-00060E-Rw for pgsql-hackers@arkaria.postgresql.org; Sun, 14 Apr 2019 17:32:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hFizR-0004P0-F3 for pgsql-hackers@arkaria.postgresql.org; Sun, 14 Apr 2019 17:32:25 +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 1hFizR-0004Ot-2T for pgsql-hackers@lists.postgresql.org; Sun, 14 Apr 2019 17:32:25 +0000 Received: from mail-qk1-x744.google.com ([2607:f8b0:4864:20::744]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hFizO-0001wP-0M for pgsql-hackers@lists.postgresql.org; Sun, 14 Apr 2019 17:32:24 +0000 Received: by mail-qk1-x744.google.com with SMTP id s81so8533320qke.13 for ; Sun, 14 Apr 2019 10:32:21 -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=UHusMuwLaW2VkYOYlsco/dXLWSmzX2XHGzeXbXMbSVw=; b=ZfA/n/ctzf9XPdEW8oFMi23YEv0F2YPYsEbQToHNcvvf3oFVwNR5XAZ9dUEE4ory19 B9EPoP6xHzn2uwe842GDxgr1R4mZNjPN+vLx1v0Dzem5oBsH1WkkddEmyHpwoTf4Fr+X OihvWRJ6a6ckumSzeZGcbwlcxFIZA+ZhRtLyOznOAHMafh7oJpNcTSvBB+pKWYIbt2zT aAALYGRfsEehFrzV6hS/S9GSwdHENh5qLkkvg/dqt5BTO0J3L4OffU1JqDti5ohWC88y r1iKRVN560N2Hvv9diTxLXBGL6YENVgiySIfpj80SkE6K/qOBk6/S/AqB5CzrzzfquDl ephw== 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=UHusMuwLaW2VkYOYlsco/dXLWSmzX2XHGzeXbXMbSVw=; b=k23RxploN7JlNYfdUbHCXY/biHbLzQEvS53oY4dasoRqisL1bS3aVpKBaHgX5+KSn0 5+lsr0MzKrSZoS7vjq6cl4XkzWqiR7AgKOHVqhh8XAC+r+zG16+H0AJ+dNstq5TgL7vG NNIjQ6JNUje6L2szfwLR9yvd/yhaRt+tEE430GSWapW+Ld8mKiZHTdWl5/tcvnKZ/OFW 1X/TVE2ia9uUPkC6n7vC5xs+/wQ4sag7VcEQgzgT5OrhH83VzPL6iZPaTzPR9IL+LXbd Y3/m0d6FyptkIPpI6xU5u6unzV3bjrJiv+Q7QYGaeNjInldzkHy2r+bgvlb3/0GL75mR RQjA== X-Gm-Message-State: APjAAAU9gyGgUY/MXI7QOaTvV0llar9pJpYPZYqy/DIzDHSlBvB9Bzsh h29ZZiHa+YQsYsDqXEXjFRbbqQ== X-Google-Smtp-Source: APXvYqwus0b2SA2GfA5WC6JlX5zMXuNo+Fari65f34lOXuLGwENgDrdGyCzVLlrXC1Qq2u/anAZCRw== X-Received: by 2002:a37:650c:: with SMTP id z12mr53830713qkb.115.1555263140001; Sun, 14 Apr 2019 10:32:20 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([201.186.80.67]) by smtp.gmail.com with ESMTPSA id w68sm24761338qka.18.2019.04.14.10.32.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 14 Apr 2019 10:32:19 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id C97BA1206AB; Sun, 14 Apr 2019 13:32:14 -0400 (-04) Date: Sun, 14 Apr 2019 13:32:14 -0400 From: Alvaro Herrera To: Andres Freund Cc: Tom Lane , David Rowley , PostgreSQL Hackers Subject: Re: pg_dump is broken for partition tablespaces Message-ID: <20190414173214.GA14838@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190414161029.ojfejg2lexv65m2b@alap3.anarazel.de> 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-Apr-14, Andres Freund wrote: > On 2019-04-14 10:38:05 -0400, Tom Lane wrote: > > It's entirely possible BTW that this whole business of inheriting > > tablespace from the partitioned table is broken and should be thrown > > out. I certainly don't see any compelling reason for partitions to > > act differently from regular tables in this respect, and the more > > problems we find with the idea, the less attractive it seems. > > Indeed. After discovering during the tableam work, and trying to write > tests for the equivalent feature for tableam, I decided that just not > allowing AM specifications for partitioned tables is the right call - at > least until the desired behaviour is clearer. The discussion of the last > few days makes me think so even more. To be honest, when doing that feature I neglected to pay attention to (read: forgot about) default_tablespace, and it's mostly the interactions with that feature that makes this partitioned table stuff so complicated. I'm not 100% convinced yet that we need to throw it out completely, but I'm less sure now about it than I was before. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services