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 1nIR68-0005OS-Hv for pgsql-general@arkaria.postgresql.org; Fri, 11 Feb 2022 08:16: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 1nIR67-0003IZ-Du for pgsql-general@arkaria.postgresql.org; Fri, 11 Feb 2022 08:16:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nIR67-0003IA-1o for pgsql-general@lists.postgresql.org; Fri, 11 Feb 2022 08:16:07 +0000 Received: from mail-oi1-x233.google.com ([2607:f8b0:4864:20::233]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nIR63-0004fs-2p for pgsql-general@lists.postgresql.org; Fri, 11 Feb 2022 08:16:06 +0000 Received: by mail-oi1-x233.google.com with SMTP id ay7so8749004oib.8 for ; Fri, 11 Feb 2022 00:16:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=chro8dQQAb0Euf8mcFVygBUiJltQwEM/m/TY6DsMHAc=; b=T7Oug9Kww4nu918RWEY8sdZM7I3se1iORnbmUH6WiCqw4uUSIikn1681XPhJTXu1pY EZLRYjGkurNO/VV6+Wd3jXnUa0n64dzN0OAwddKmeiXse5w61VpPp83uvjZArv1NLNgU VzMszT5g7UhK3mD2n1/7Mzvn9P9NGNQFX+q2n24ZHYdxRB8ymN5FOSM5w//stuYbQQbD ca/rKF9tzXbmLQFIqBJ6AY5lMLHCXC+pbzrU90AUN/f/f3iaWIeyNKpHZFHF/9eOqu/t qP/bLRZ6vJaLXr97GxyKNFRWguPFPwqOvrQB3FNEQqr3DMIGDXcMMEq2M/akEINut8mD GXCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=chro8dQQAb0Euf8mcFVygBUiJltQwEM/m/TY6DsMHAc=; b=djriLTIAp40v8rkAprktk7Qm/w85PAhciyXJQAnCszxaOJvkHbZQhRqcdXRiPq+OTw YG8A2hBcRS2bSwjlcsJ9G5z2stVkh83+PMsXimdavU67KaEo9QnqBo8HknnbQMeIRWym A7vrKeNtB20T5qUt7b/0BfjcpQuvtijXyJvwkOwl2363r/IyYpKu9WNnTwuB/R4p8fdJ MESC0rFBQD6EcVnTJOYS0WyuhwGrAAZ8YefqkMTvf8Q4DejRylaGXkzaR0WhsLKbJwT6 TyWsNIg3g8h6au1Zj8S7VuEetrB15nhcpKyyFTy4ZLLw0BwPjenbBVFtGb8L5rcdiBbJ hyuw== X-Gm-Message-State: AOAM532lQuYixyvpO40z91A95KPh5U6CIZ9W8Ywni5ptKk/bAgmTPvzS gWpGBiVLHUszh3aUK/Fwj7umqgQ6y0g= X-Google-Smtp-Source: ABdhPJwzarw9ISqNHmyU8RBU0AgZk6T7z5vF9AD76fFhXxpH9WK/DyA6D8iDHf/jIDIvmwX9sg85BQ== X-Received: by 2002:aca:3254:: with SMTP id y81mr512904oiy.290.1644567360067; Fri, 11 Feb 2022 00:16:00 -0800 (PST) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id t13sm4120319oai.37.2022.02.11.00.15.59 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Feb 2022 00:15:59 -0800 (PST) Subject: Re: Can we go beyond the standard to make Postgres radically better? To: pgsql-general@lists.postgresql.org References: <7117322c-185c-4283-990d-6646d8476409@Spark> <20220210172229.4it7ioddvrtmws37@hjp.at> <20220210172545.f7vtdcrg325v3xlx@hjp.at> <937E9BA7-F8D9-4547-A171-AC1497470A0C@gmail.com> From: Ron Message-ID: <59dbd63b-c9fb-3e72-cb58-a83f0e1e21cb@gmail.com> Date: Fri, 11 Feb 2022 02:15:58 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------FFE3229A1C6F57CF22C2C11A" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------FFE3229A1C6F57CF22C2C11A Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 2/10/22 10:33 PM, Raymond Brinzer wrote: [snip] > Here's one that I think is simple:  why would we want a language where the > clauses must come in a particular order?  `FROM mytable SELECT column` is > as clear an expression as `SELECT column FROM mytable`, and probably > better, in that it starts with the source and winnows from there.  > Likewise, the order of WHERE, ORDER BY, and so on don't change what is > being said. > > I believe the "why" is,  "because parsing SQL is hard enough already", but > that's a problem unto itself.  A language with a more regular syntax is > easier to work with and improve. The answer is obvious to every grey beard: SQL was developed from SEQUEL, Structured *ENGLISH* Query Language at a company that loved English-style programming languages. "SELECT column FROM mytable WHERE condition" is a perfect declarative English sentence that any middle school grammar teacher would be proud of. "FROM mytable SELECT column"... not so much. -- Angular momentum makes the world go 'round. --------------FFE3229A1C6F57CF22C2C11A Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 2/10/22 10:33 PM, Raymond Brinzer wrote:
[snip]
Here's one that I think is simple:  why would we want a language where the clauses must come in a particular order?  `FROM mytable SELECT column` is as clear an expression as `SELECT column FROM mytable`, and probably better, in that it starts with the source and winnows from there.  Likewise, the order of WHERE, ORDER BY, and so on don't change what is being said.

I believe the "why" is,  "because parsing SQL is hard enough already", but that's a problem unto itself.  A language with a more regular syntax is easier to work with and improve.

The answer is obvious to every grey beard: SQL was developed from SEQUEL, Structured ENGLISH Query Language at a company that loved English-style programming languages.

"SELECT column FROM mytable WHERE condition" is a perfect declarative English sentence that any middle school grammar teacher would be proud of.

"FROM mytable SELECT column"... not so much.

--
Angular momentum makes the world go 'round.
--------------FFE3229A1C6F57CF22C2C11A--