Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sPOuI-004QDW-0b for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Jul 2024 16:02:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sPOuF-000zyE-RI for pgsql-hackers@arkaria.postgresql.org; Thu, 04 Jul 2024 16:02:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sPOuF-000zy5-H8 for pgsql-hackers@lists.postgresql.org; Thu, 04 Jul 2024 16:02:00 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sPOuD-000OPT-TS for pgsql-hackers@lists.postgresql.org; Thu, 04 Jul 2024 16:01:58 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 464G1tGf3411289; Thu, 4 Jul 2024 12:01:55 -0400 From: Tom Lane To: Harjyot Bagga cc: Aleksander Alekseev , pgsql-hackers@lists.postgresql.org Subject: Re: Grammar guidelines in Postgres In-reply-to: References: Comments: In-reply-to Harjyot Bagga message dated "Thu, 04 Jul 2024 03:56:30 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3411287.1720108915.1@sss.pgh.pa.us> Date: Thu, 04 Jul 2024 12:01:55 -0400 Message-ID: <3411288.1720108915@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Harjyot Bagga writes: > One such suggestion or rule for example is the Postgres does not support > Postfix operators. So whenever a new feature is introduced developers make > sure that they do not add a postfix operators in their grammar. Just like > that are there any other further rules or suggestions compiled by post > hackers and maintainers? [ shrug... ] If you try to re-introduce postfix operators you'll get a ton of shift-reduce conflicts. We have a hard rule that such conflicts are not allowed, even though Bison can be told to ignore them. Beyond that, there's not much. regards, tom lane