From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Can we go beyond the standard to make Postgres radically better?
Date: Fri, 11 Feb 2022 02:15:58 -0600
Message-ID: <59dbd63b-c9fb-3e72-cb58-a83f0e1e21cb@gmail.com> (raw)
In-Reply-To: <CANasJHmT_SuO9wA5RxEa-mM8n6i6Rq=P2r1wnF+8ByGyy=51ww@mail.gmail.com>
References: <7117322c-185c-4283-990d-6646d8476409@Spark>
<F04BD036-073C-42AD-B308-43D21C75024B@gmail.com>
<20220210172229.4it7ioddvrtmws37@hjp.at>
<20220210172545.f7vtdcrg325v3xlx@hjp.at>
<YgV//dHwtGVDADUp@momjian.us>
<CAD+mzowO=ZfgeNi7HwYGbNtTCQ--JyvaYLiiBwrPdXcLPeZ3aQ@mail.gmail.com>
<937E9BA7-F8D9-4547-A171-AC1497470A0C@gmail.com>
<CANasJHmT_SuO9wA5RxEa-mM8n6i6Rq=P2r1wnF+8ByGyy=51ww@mail.gmail.com>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ronljohnsonjr@gmail.com
Subject: Re: Can we go beyond the standard to make Postgres radically better?
In-Reply-To: <59dbd63b-c9fb-3e72-cb58-a83f0e1e21cb@gmail.com>
References: <7117322c-185c-4283-990d-6646d8476409@Spark> <F04BD036-073C-42AD-B308-43D21C75024B@gmail.com> <20220210172229.4it7ioddvrtmws37@hjp.at> <20220210172545.f7vtdcrg325v3xlx@hjp.at> <YgV//dHwtGVDADUp@momjian.us> <CAD+mzowO=ZfgeNi7HwYGbNtTCQ--JyvaYLiiBwrPdXcLPeZ3aQ@mail.gmail.com> <937E9BA7-F8D9-4547-A171-AC1497470A0C@gmail.com> <CANasJHmT_SuO9wA5RxEa-mM8n6i6Rq=P2r1wnF+8ByGyy=51ww@mail.gmail.com> <59dbd63b-c9fb-3e72-cb58-a83f0e1e21cb@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox