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 1hvNPO-0007t9-To for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Aug 2019 14:59:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hvNPN-0003qN-Li for pgsql-hackers@arkaria.postgresql.org; Wed, 07 Aug 2019 14:59:21 +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 1hvNPN-0003mD-85 for pgsql-hackers@lists.postgresql.org; Wed, 07 Aug 2019 14:59:21 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hvNPK-0002ZU-He for pgsql-hackers@lists.postgresql.org; Wed, 07 Aug 2019 14:59:20 +0000 Received: by mail-qk1-x743.google.com with SMTP id u190so2371266qkh.5 for ; Wed, 07 Aug 2019 07:59:18 -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=/MBvDgpi7q6Vwf92W2Za4fexOrHVMFMwa6qjk8SnVEo=; b=PPUUpP99w5h2lWyOvXZg4lfsydrZyg4XFvKGStgIqN+Q6Bul4GRAk7MkDDSPU20SEM 4fi6TvvVHe5PfsllWCBkjpmqPVPu448gCupY80nyqixJ4exefenT3TEywN6Na1b9rj6l AvvkXiCWiZ3uXJIeAzZ/1enKx8V/G8Vg9GideIV/FryhlcnftWl/28Lx8vA9hhr9bSUK Hiy1HntkfI/XVcYbTed+fJ/alb2Qsar9a1ueQslYzPItiGMHoQfn2JJRG16x1A7b6D/Z LEU3z6/c3+gTIbyn88cynnP9/CL1rYHsavKgkf4YHf+InJI1peh/Xn5sNJ2rf1alCSlQ cnhQ== 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=/MBvDgpi7q6Vwf92W2Za4fexOrHVMFMwa6qjk8SnVEo=; b=SQ2LMf315qLFYlq7pcOvTY++BFTpZTI5F5LvqSB5FH6bGv5i05mqiszA0XFnMLMuLa xzfcSjp8/hLyQuiekT4AdVhGR2TiwGILazHuc8Uj9jD0Vha4Lc7IVpYw3ZqRMDELiSK6 XU0Fxbmy6uC4cujO9uvcPUiyFvLz5Dayv8x73yZSoy4Httr2IKQL401NL8Q/qT6O/jtm gMMGPzfoFim7hc9+OQU8GJhWsiKUOA3+Hi1n+hrm93tRlICYmqgh3ifjy1iHXJmvYbwN eAua579CtKNv6O0LosLMIFrqk65UcC8X9AMa6QuExYy6468xDibhsJulD4yvvlh+FNUo hG/Q== X-Gm-Message-State: APjAAAUdrSGfX/Y3/x5HUCyhFlWVZ2C5/yDAt+cg8uN6NWxH9hA8x1yu AUxC7B5idTpsk6rIwsrudDkIXA== X-Google-Smtp-Source: APXvYqwO2cR/0Qcu3TxNvc9p1CRlnh2aKlcbE1cWWf0AHUXWZhHmkHIZL6zE/5ixz+k73/1HacFYDw== X-Received: by 2002:a37:7847:: with SMTP id t68mr8333782qkc.128.1565189956420; Wed, 07 Aug 2019 07:59:16 -0700 (PDT) Received: from nimloth.alvh.no-ip.org ([190.217.183.1]) by smtp.gmail.com with ESMTPSA id f20sm34770879qkh.15.2019.08.07.07.59.15 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 07 Aug 2019 07:59:15 -0700 (PDT) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 6A4F512061D; Wed, 7 Aug 2019 10:59:13 -0400 (-04) Date: Wed, 7 Aug 2019 10:59:13 -0400 From: Alvaro Herrera To: Amit Langote Cc: Pg Hackers Subject: Re: no default hash partition Message-ID: <20190807145913.GA481@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." This approach of documenting by omission seems unhelpful. Yes, I'd like to expand that too. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services