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 1krifz-0008NL-1N for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Dec 2020 14:30:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1krifw-0004W5-0P for pgsql-hackers@arkaria.postgresql.org; Tue, 22 Dec 2020 14:30:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krifv-0004VU-Pt for pgsql-hackers@lists.postgresql.org; Tue, 22 Dec 2020 14:30:07 +0000 Received: from sfr-1.cri.mines-paristech.fr ([77.158.180.225] helo=smtp.cri.ensmp.fr) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krifs-00038e-GZ for pgsql-hackers@lists.postgresql.org; Tue, 22 Dec 2020 14:30:06 +0000 Received: from pseudo.home (lfbn-lam-1-200-231.w92-144.abo.wanadoo.fr [92.144.48.231]) by smtp.cri.ensmp.fr (Postfix) with ESMTPSA id 8CE2DC010A; Tue, 22 Dec 2020 15:30:57 +0100 (CET) Date: Tue, 22 Dec 2020 10:29:56 -0400 (AST) From: Fabien COELHO X-X-Sender: fabien@pseudo To: Maxim Orlov cc: Pavel Borisov , Anastasia Lubennikova , Rahila Syed , Michael Paquier , PostgreSQL Hackers , Justin Pryzby , Robert Haas , Amul Sul Subject: Re: [PATCH] Automatic HASH and LIST partition creation In-Reply-To: <8b1fce70861e2143cef9c7a69b740d61@postgrespro.ru> Message-ID: References: <7fec3abb-c663-c0d2-8452-a46141be6d4a@postgrespro.ru> <7c4013db-a628-c8bd-ce54-064389109e0f@postgrespro.ru> <726c63e2-ef34-8113-f3cf-90e1646e4c2b@postgrespro.ru> <74a716a3-986d-c737-6217-6a3ffd488da3@postgrespro.ru> <20200924032738.GA28585@paquier.xyz> <37f1072a-16ec-8ce8-8044-1fcec85c8ed5@postgrespro.ru> <199124d5-e710-71a6-1836-4653cd668d96@postgrespro.ru> <8b1fce70861e2143cef9c7a69b740d61@postgrespro.ru> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > CREATE TABLE foo(a int) PARTITION BY LIST(a) CONFIGURATION (FOR VALUES IN > (1,2),(3,4) DEFAULT PARTITION foo_def); I would like to disagree with this syntactic approach because it would very specific to each partition method. IMHO the syntax should be as generic as possible. I'd suggest (probably again) a keyword/value list which would allow to be quite adaptable without inducing any pressure on the parser. -- Fabien.