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 1ks1sG-0005lo-AO for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Dec 2020 11:00:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ks1sF-0001yU-3q for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Dec 2020 11:00:07 +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 1ks1sE-0001xz-T7 for pgsql-hackers@lists.postgresql.org; Wed, 23 Dec 2020 11:00:06 +0000 Received: from mail-vs1-xe30.google.com ([2607:f8b0:4864:20::e30]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ks1sC-0008Ud-0A for pgsql-hackers@lists.postgresql.org; Wed, 23 Dec 2020 11:00:05 +0000 Received: by mail-vs1-xe30.google.com with SMTP id e20so8560903vsr.12 for ; Wed, 23 Dec 2020 03:00:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LrC1vOwuQDlv1gHjqPGzfXdhm9SCD6n5+v6Sp/K2AlA=; b=nLOOeIm4JOd750buJ1vPMwlrd09cBPpiyo4BDSxTTfpjkbyyLroqNlrT7S+6ytz0EM 2mswnjF1nV6d+mcqaGRkippXjeCCm8TKi7ttlRZeJHYs43j95RraF/5iBWsELMnpufQb dnsxri6zR9kUjSESa4PuVWbdRnrGhO/+Yk9LynvbAn8mlCsi4JNVg9F3Quy5+hXpn8zy ltWGEyiVn5fa4lRc36R1w4gTIbztp7xu+aDX9Wd+wSIEn2mfChqTtCSK/OJCXKxEC+A1 I+Y7Qu9eBoltTAgqgCC2GcWzkL/MdvZLMh1Lmt9EEbCL03wQOdYypAkemyWzZnD7nIet 3N0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LrC1vOwuQDlv1gHjqPGzfXdhm9SCD6n5+v6Sp/K2AlA=; b=ITaDY2YVpiJssvnUe/4Yq3dJ6BL3y3YTmVgmKfW2mFoiH5N64AkMZP93kFayOfhRRg /oRh5gr21aiiPXFkjme+5jkPYvt43jlu6LpHXOSoa3eiwPUauP5qHRLVLqNGevyThr6N /S1b0II6EXHz53MSy28yw8qYNOiheN1phoBaq8RhxRMd6JCI5pxtWF8grSLLkXWCFnjI 17XatVqke8Tl08FxSEW1RbRX+RWfR4had0633MdONwavvY4ObKxLyXERpM3ppXj0RF5q oWkvOBkOP+x0bi+5tsvk1aoQe2trwNWol/XLiaTC2v5oQ8ARrszhVGUck1VO6TAA0P0T +mBg== X-Gm-Message-State: AOAM533pGobkI9eeK3B7dKBWp1dkOj1KfYMOkTyDFohrmDaQlaJppG4y dtyQ1ymovGjgmEHn4/C4ul1r4fMDzHNPhfLzx5g= X-Google-Smtp-Source: ABdhPJzCvRZW1KRKQn8zIZre4jHIrUCFCXp8B16dOh/KPZnDKwyFPxRU9JmkDMPFDiJtmxiKoBaqkHqGQ3Z7Q5UMnSI= X-Received: by 2002:a67:fb16:: with SMTP id d22mr17839879vsr.32.1608721203155; Wed, 23 Dec 2020 03:00:03 -0800 (PST) MIME-Version: 1.0 References: <7fec3abb-c663-c0d2-8452-a46141be6d4a@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> In-Reply-To: From: Pavel Borisov Date: Wed, 23 Dec 2020 14:59:51 +0400 Message-ID: Subject: Re: [PATCH] Automatic HASH and LIST partition creation To: Fabien COELHO Cc: Maxim Orlov , Anastasia Lubennikova , Rahila Syed , Michael Paquier , PostgreSQL Hackers , Justin Pryzby , Robert Haas , Amul Sul Content-Type: multipart/alternative; boundary="000000000000db592905b71f97db" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000db592905b71f97db Content-Type: text/plain; charset="UTF-8" > > > > BTW could you tell me a couple of words about pros and cons of c-code > > syntax parsing comparing to parsing using gram.y trees? > > I'd rather use an automatic tool (lexer/parser) if possible instead of > doing it by hand if I can. If you want a really nice syntax with clever > tricks, then you may need to switch to manual though, but pg/sql is not in > that class. > > > I think both are possible but my predisposition was that we'd better use > > the later if possible. > > I agree. > Thank you! Fabien, do you consider it possible to change the syntax of declarative partitioning too? It is problematic as it is already committed but also is very tempting to have the same type of syntax both in automatic partitioning and in manual (PARTITION OF...) -- Best regards, Pavel Borisov Postgres Professional: http://postgrespro.com --000000000000db592905b71f97db Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

> BTW could you tell me a couple of words about p= ros and cons of c-code
> syntax parsing comparing to parsing using gram.y trees?

I'd rather use an automatic tool (lexer/parser) if possible instead of =
doing it by hand if I can. If you want a really nice syntax with clever tricks, then you may need to switch to manual though, but pg/sql is not in =
that class.

> I think both are possible but my predisposition was that we'd bett= er use
> the later if possible.

I agree.
Thank you!

Fabien, d= o you consider it possible to change the syntax of declarative partitioning= too? It is problematic as it is already committed but also is very temptin= g=C2=A0to have the same type of syntax both in automatic partitioning and i= n manual (PARTITION OF...)

--
Best regards,
Pavel Borisov

Postgres Professional: http://postgrespro.com
--000000000000db592905b71f97db--