pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guyren Howe <guyren@gmail.com>
To: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: The tragedy of SQL
Date: Mon, 13 Sep 2021 22:31:41 -0700
Message-ID: <d61c6062-32ae-4892-8993-9ad932e10b91@Spark> (raw)
References: <4dc338ad-b0aa-4f4c-bd9c-4dc76dda9e8b@Spark>

A fun philosophical discussion.

I am no fan of “worse is better”, and particularly its poster child, SQL.

The world’s economic output would be substantially higher (5%?) if our industry had settled on almost anything other than SQL for relational databases.

So much of the design of *almost everything* in our industry is a reaction to SQL. ORMs fucking *everywhere* so you don’t have to use SQL. Bad query and database design. Inefficient system designs that use ORMs rather than relations. NoSQL databases. Countless hours on hours of developer time trying to work out how to write something in SQL that would be trivial in, say, Datalog.

If I had $5 million to invest in a startup, I would hire as many of the core Postgres devs as I could to make a new database with all the sophistication of Postgres but based on Datalog (or something similar). (Or maybe add Datalog to Postgres). If that could get traction, it would lead in a decade to a revolution in productivity in our industry.

view thread (61+ messages)  latest in thread

Message-ID: <d61c6062-32ae-4892-8993-9ad932e10b91@Spark>
Permalink:  ../d61c6062-32ae-4892-8993-9ad932e10b91@Spark/
Also on:    postgresql.org/message-id/d61c6062-32ae-4892-8993-9ad932e10b91@Spark

 · 

reply

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: guyren@gmail.com
  Subject: Re: The tragedy of SQL
  In-Reply-To: <d61c6062-32ae-4892-8993-9ad932e10b91@Spark>
  References: <4dc338ad-b0aa-4f4c-bd9c-4dc76dda9e8b@Spark> <d61c6062-32ae-4892-8993-9ad932e10b91@Spark>

* 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