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 1lXPVZ-00064y-RB for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Apr 2021 14:31:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lXPVY-00048X-JL for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Apr 2021 14:31:44 +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 1lXPVY-00048Q-7L for pgsql-hackers@lists.postgresql.org; Fri, 16 Apr 2021 14:31:44 +0000 Received: from mail-ot1-x32f.google.com ([2607:f8b0:4864:20::32f]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lXPVT-0008Np-72 for pgsql-hackers@postgresql.org; Fri, 16 Apr 2021 14:31:43 +0000 Received: by mail-ot1-x32f.google.com with SMTP id a2-20020a0568300082b029028d8118b91fso7425257oto.2 for ; Fri, 16 Apr 2021 07:31:39 -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:mime-version:content-disposition :user-agent; bh=Jpq0djPc8zo52V8LAW54rP1CXholnGqrH681p7Oe4M4=; b=YRfZoNlI32PkE29xXfhdGBpsrAMKWtAiansxdNsB6JSjjKBf80FWdF93V8srwOGVUo dFagbi+U6TIiucu/JKWvDcFX8wE1R6KVftPPmhYjRzhiudOKRSGxA6iXjyii1xStvgCU 9C1bUuyUuvNX2gpUP1ly3eYGttXOHUhOgNUtwIzYxyn9VLtk+jfO1Llk50dWCn/98gCC fndCN4nMQJo81n/0HjMVfpK3dozidrQvpPLbLNn9CF2aYMS4KSkbINeRYWeXiuq/8Uo1 JsB7ydHd07kRyw0UwrW70LVEMOJ9tTbRx5qkMpvZUbIOq4KLw3E5JC2xkMe/mgP5QiVH 8zlQ== 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:user-agent; bh=Jpq0djPc8zo52V8LAW54rP1CXholnGqrH681p7Oe4M4=; b=aYYxErCMLU6rh3+nUrHKHnLDbSW0VXbvUHLw2BArNCEHIBy8rsvJdywRfEGDimLGGF IwNQm8iRonhsLqYCOi26g4c9CZ1zJeCNPf4Ua5mvKi7P6xo6P10QggvlF1KOU1eFHLzQ SdvNohJZvy2zWbNmBAa88rggTlDCcg50BLvn3Z4fedA2O4UZ8StI1ueXFXIzB3gQrtM/ Z9kGLuE9KD0FEVsbH/gaNUn07G6yo7u/GgUPruA8rpi+sQs1nHH6ZwuQmvupYGhdiVfN 4pHM2n4aDHKEDVimqUBQbZwBvAJ1bTfQqRx5869Vp+05+uTyvF5mtsBNKa2tpSdvSjdV KFXw== X-Gm-Message-State: AOAM533xnnA5eLyh2W7DHBDtVyqIaJOYT9uUwc34k5mSuNGSiIflkaX7 7ynpj9SDdWbfkHs7kFce/YYCpA== X-Google-Smtp-Source: ABdhPJwXdZefswd0mnIpEZ9tyXlq51OCOJlGOr4wmitnlgTs0br5TW2K4L/ZBJcsUw4uncwthiTfGQ== X-Received: by 2002:a9d:730b:: with SMTP id e11mr4052355otk.166.1618583497359; Fri, 16 Apr 2021 07:31:37 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id f5sm1214692oom.35.2021.04.16.07.31.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Apr 2021 07:31:37 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 009B2800A3B; Fri, 16 Apr 2021 09:31:35 -0500 (CDT) Date: Fri, 16 Apr 2021 09:31:35 -0500 From: Justin Pryzby To: Alvaro Herrera Cc: pgsql-hackers Subject: default_tablespace doc and partitioned rels Message-ID: <20210416143135.GI3315@telsasoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk commit 87259588d0ab0b8e742e30596afa7ae25caadb18 Author: Alvaro Herrera Date: Thu Apr 25 10:20:23 2019 -0400 Fix tablespace inheritance for partitioned rels This doc change doesn't make sense to me: +++ b/doc/src/sgml/config.sgml @@ -7356,7 +7356,8 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv; This variable specifies the default tablespace in which to create objects (tables and indexes) when a CREATE command does - not explicitly specify a tablespace. + not explicitly specify a tablespace. It also determines the tablespace + that a partitioned relation will direct future partitions to. default_tablespace is a global GUC, so if a partitioned relation "directs" partitions anywhere, it's not to the fallback value of the GUC, but to its reltablespace, as this patch wrote in doc/src/sgml/ref/create_table.sgml: + the tablespace specified overrides default_tablespace + as the default tablespace to use for any newly created partitions when no + other tablespace is explicitly specified. Maybe I'm misreading config.sgml somehow ? I thought it would be more like this (but actually I think shouldn't say anything at all): + ... It also determines the tablespace where new partitions are created, + if the parent, partitioned relation doesn't have a tablespace set. -- Justin