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 1mQ130-0000Uo-Hv for pgsql-general@arkaria.postgresql.org; Tue, 14 Sep 2021 05:31:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mQ12z-0006ww-DS for pgsql-general@arkaria.postgresql.org; Tue, 14 Sep 2021 05:31:57 +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 1mQ12z-0006wT-2e for pgsql-general@lists.postgresql.org; Tue, 14 Sep 2021 05:31:57 +0000 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mQ12u-0008FU-L9 for pgsql-general@lists.postgresql.org; Tue, 14 Sep 2021 05:31:54 +0000 Received: by mail-pl1-x630.google.com with SMTP id w6so7412156pll.3 for ; Mon, 13 Sep 2021 22:31:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:references:subject:mime-version; bh=7Qbo9Y+8NiPy0OmJZeRAwsvR71D9iW3KWTbXUyDNHoc=; b=fU3mQ6jvfqOBgxC89cN1iVFWe7wZ63rZ9Zq9t9c/tiWLLCPmM6EaUgmGLg7Wv06slF zgTTQnVx9Y/20mcFfWGQs0QBItUICXOihU6uTvnDTO3sf7+fKLqQpHRqiQijM5M4FrbK drulZTJTPF/3vE2YmcHtY1K+4a7M3k+dPApGDGHMC+vt/XJRh/fORPGPWS5PUtMhTm+7 Xwmr/3IZCOA2euXZ+HfbBO0BvM94a7R5HbS9in0+DV80WzcRGv/T1jYqnqgX2n/1VZl+ r1zluJtlg2nY35Ql6q5wMv5VEKtOAl3aDkkjrlAxjFjKxYSav8nziPPg2ewcMeZ3c3TB ym3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:message-id:references:subject :mime-version; bh=7Qbo9Y+8NiPy0OmJZeRAwsvR71D9iW3KWTbXUyDNHoc=; b=JVw/G+fPZjBCtbtO4nDCJug/UgOvjD2tTa1hwA/d5QdWCi8HijWvoPHOA6+Js2JUcf PfXJi6l0/sfHfOefQqNCFX/hS57sPqXw1ccQq55ArW4YQ5xFw+WQriQxeJiq73sUZKQF 2yE3QXs0MaqO5D+3VYOARf6yLBCUvrCSJM19PAssd5Yx2MYWTepUd6Y7uMxb6bqK+UN6 Wrc+QflS2Mb83Tfzx8lrG6O/nWPb0yTrphJuQS0TXL1c/9qlZZlgOAzoO49o03t5H2zZ hBFr4cG7QwmvrRc+qOwY+jtQHogbXSqDZAysqu/QBQRFosMlScQznmi73GPspVpPBDPO PHCA== X-Gm-Message-State: AOAM530amzNyCmjlgPLRRlCuq/G8FCO9ICT5J8MJLoyNiXjvWSaLGdyB hfLeaBzXoc2Ww1TF2IDtERvvDotcFdU= X-Google-Smtp-Source: ABdhPJzLWcKAz5NI7ZOfWxwicl4nj4Wbt5j2/C0dpoC/KZenOgy9C16MOo2PhkJn/BcU/Fzz4xSJcg== X-Received: by 2002:a17:902:a3c1:b0:13a:47a:1c5a with SMTP id q1-20020a170902a3c100b0013a047a1c5amr13690665plb.13.1631597509618; Mon, 13 Sep 2021 22:31:49 -0700 (PDT) Received: from [2600:8801:8800:5:100::] ([2600:8801:8800:5::c]) by smtp.gmail.com with ESMTPSA id cm5sm54426pjb.24.2021.09.13.22.31.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Sep 2021 22:31:49 -0700 (PDT) Date: Mon, 13 Sep 2021 22:31:41 -0700 From: Guyren Howe To: "pgsql-generallists.postgresql.org" Message-ID: References: <4dc338ad-b0aa-4f4c-bd9c-4dc76dda9e8b@Spark> Subject: The tragedy of SQL X-Readdle-Message-ID: d61c6062-32ae-4892-8993-9ad932e10b91@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="614033c3_257130a3_11580" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --614033c3_257130a3_11580 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline A fun philosophical discussion. I am no fan of =E2=80=9Cworse is better=E2=80=9D, and particularly its po= ster child, SQL. The world=E2=80=99s economic output would be substantially higher (5%=3F)= if our industry had settled on almost anything other than SQL for relati= onal databases. So much of the design of *almost everything* in our industry is a reactio= n to SQL. ORMs fucking *everywhere* so you don=E2=80=99t 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 devel= oper time trying to work out how to write something in SQL that would be = trivial in, say, Datalog. If I had =245 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 sophis= tication of Postgres but based on Datalog (or something similar). (Or may= be add Datalog to Postgres). If that could get traction, it would lead in= a decade to a revolution in productivity in our industry. --614033c3_257130a3_11580 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
A fun philosophical discussion.

I am no fan of =E2=80=9Cworse is better=E2=80=9D, and particularly its po= ster child, SQL.

The world=E2=80=99s economic output would be substantially higher (5%=3F)= if our industry had settled on almost anything other than SQL for relati= onal databases.

So much of the design of *almost everything* in our industry is a reactio= n to SQL. ORMs fucking *everywhere* so you don=E2=80=99t 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 devel= oper time trying to work out how to write something in SQL that would be = trivial in, say, Datalog.

If I had =245 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 sophis= tication of Postgres but based on Datalog (or something similar). (Or may= be add Datalog to Postgres). If that could get traction, it would lead in= a decade to a revolution in productivity in our industry.
--614033c3_257130a3_11580--