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 1hvOp3-0002O7-9w for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Aug 2019 16:29:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hvOp2-00015t-4X for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Aug 2019 16:29: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 1hvOp1-00010S-Px for pgsql-hackers@lists.postgresql.org; Wed, 07 Aug 2019 16:29:55 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hvOow-0003T6-R4 for pgsql-hackers@lists.postgresql.org; Wed, 07 Aug 2019 16:29:55 +0000 Received: by mail-qt1-x842.google.com with SMTP id z4so89019009qtc.3 for ; Wed, 07 Aug 2019 09:29:50 -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=hHyPmLg4zf9ke4kGJVkH/cMHuy+e9NLY/rTQlyqxTRU=; b=lW/Jhe7SXndxrtX2xT+N6aVhPxe3Nep9CYuLXimNvMnYrya/iMOHUMwqQk0kMTrjoO jAFmm32FrZo6DV6T/aN0uRLBnFL3IacHn16mX3ubXaOjlVyDMzkgKMCgzU0NkrJelzmn kHzKHS3qFMwdRTlS7XyMLGo3Lhqae0vsMKG1zanuD3faA/Jn11KQrhKCP+OoKJSLiHMg pvB5KydeRo3aHJUZIULZsOrxEUMW41EzdOfarbDX6cbZ2ozFxS7USIDwvJEJx3PHb506 XyeslLAk7aDxgakPePYgX11pT3xREacl9/xP9aKMoaFTK9LScEWqmsgy1pKcy805tskq EBbA== 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=hHyPmLg4zf9ke4kGJVkH/cMHuy+e9NLY/rTQlyqxTRU=; b=ieXKiFuEWdJipIEtOt0xiUl9UBDz+adZWFNQsmUt/JamjrsRspx/rh8zq9WIw7XnZz LtsF+8ZKqgQ364esuAL0LzHYOEX8GUuX2BehPhrVbErfP8snkiofXNvY9iWtKOJK7rtE /KuQzba4ltrJDGPn2t9F/uOWSao6INcqkFIldxcgeGd+lSoxhvQS8dXWqBUOksO5dMOY fhZ0wQVkuxy+kCtgRhvVEmVysR0fwLIBlhOcU0gdLzaFrPFa9MRDrOeMClCIbWCUeUif T1eJCmhiJq/LiUOckwaQ3wxMn369JtDsQsOlgZfAyq6PZNA8U6o71sQ2RaqoJitP/v54 n6yg== X-Gm-Message-State: APjAAAXfIfpuhVs2EqS0n61/ASJXtJytWnlbXrn0DVAyxGSemIqY9kkn MhQyI/OMOs0UCHtd1XDOYueu9g== X-Google-Smtp-Source: APXvYqyYEk54eDnmfSb0057rpH/f0APZKbV6EVrtex26JK/tHEQt2LDO3NgKhuAGq5gNb0DWLzsOjw== X-Received: by 2002:aed:3e6f:: with SMTP id m44mr6442350qtf.220.1565195388735; Wed, 07 Aug 2019 09:29:48 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.217.183.1]) by smtp.gmail.com with ESMTPSA id k33sm45525836qte.69.2019.08.07.09.29.48 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 07 Aug 2019 09:29:48 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 73EE012061D; Wed, 7 Aug 2019 12:29:45 -0400 (-04) Date: Wed, 7 Aug 2019 12:29:45 -0400 From: Alvaro Herrera To: Amit Langote Cc: Pg Hackers Subject: Re: no default hash partition Message-ID: <20190807162945.GA28711@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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-Aug-07, Amit Langote wrote: > That hash-partitioned tables can't have default partition is mentioned > in the CREATE TABLE page: > > "If DEFAULT is specified, the table will be created as a default > partition of the parent table. The parent can either be a list or > range partitioned table. A partition key value not fitting into any > other partition of the given parent will be routed to the default > partition. There can be only one default partition for a given parent > table." Actually, it also says this (in the blurb for the PARTITION OF clause): Creates the table as a partition of the specified parent table. The table can be created either as a partition for specific values using FOR VALUES or as a default partition using DEFAULT. This option is not available for hash-partitioned tables. which I think is sufficient. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services