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 1mQ8qk-000339-Pk for pgsql-general@arkaria.postgresql.org; Tue, 14 Sep 2021 13:51:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mQ8qj-0001qb-Q1 for pgsql-general@arkaria.postgresql.org; Tue, 14 Sep 2021 13:51:49 +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 1mQ8qN-0001or-1e for pgsql-general@lists.postgresql.org; Tue, 14 Sep 2021 13:51:27 +0000 Received: from mail-am6eur05on2106.outbound.protection.outlook.com ([40.107.22.106] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQ8qJ-00042s-31 for pgsql-general@lists.postgresql.org; Tue, 14 Sep 2021 13:51:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h0vNjIQmlA1Co6aF6zZZfXgNwcUJLZz1cvx05/kctFOYpYt9QNUFpOwRksb+HDTuSDhzkFpQK08lV1o4ZyESszuRz47ajXhtcKzFwRWeKaCjWh/pbIZ+56EpyqSbHRrQ74qbwdimwy+EFTsHtW8Nx82z3MicSzb84hO9O5G1lIQ+g0+bMEWHLUEWn2+eyt+aYhHpw7ZbiOJcMdbJdSYOOMEMJbs6YglsBo9S7/C9kr77U8gZpqWBWevIac5wyjcFK82i5+Kkqoca0DBwO/kIMAqmbCHw9zxZ9CShSMxJb6Pasjg7o+SkySTGtI6Ng+urkEPL4/+FPuhaXc5yugGDQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=N4U78CQVaO+He2fB730DK85OA1AoJseAM+iweXNpFJ4=; b=O3EGIVW+At4N41yjeDJQxW8s5/k/goKomtWt3tjA2fhwMGh5vAAS4q6f+YxFYh2JYoSS3BRH/7xGRHHXqoBvcR/evvIR0uB5cUJOG96b1FF4khQnC/F/nFeT1J6E2qStF/2sHYvCzv55FkvVJOAZ+eUTnpFT0dLyM888y0OzfuAGB43n9pfkTiiCMmGraXO7q/WkEbH1LfFAVXkiI8YYGIaNzAOfidnmdjMVJjbLBgVNR72s26LqpQyhLajWOAHE/hYaTffKISl1w/02GPRW0GRo32kP29AEU90QvbZDV56kHILjowZU2TK9fKh2jGmrXHXzHPG9S4ONSVcz6H/0Vw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=broadwellmanor.co.uk; dmarc=pass action=none header.from=broadwellmanor.co.uk; dkim=pass header.d=broadwellmanor.co.uk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bt839348pop.onmicrosoft.com; s=selector2-bt839348pop-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N4U78CQVaO+He2fB730DK85OA1AoJseAM+iweXNpFJ4=; b=BRAK41wy76Ci7E8oYpQ9L85o7dfTOfyssVpThxfJAaj7uj69BDubyIGQkXYSnrpClnT1kTuTcZN4zcVmwtYFTWJESzEOiUR9nZhZZu6sFFb9nXxNEKr8WgaJxDfu0dx4wHtg7ClctttmgpeHhwHZsyczmra5EVW40q9Wq4U4p2k= Authentication-Results: lists.postgresql.org; dkim=none (message not signed) header.d=none;lists.postgresql.org; dmarc=none action=none header.from=broadwellmanor.co.uk; Received: from AM6PR04MB4455.eurprd04.prod.outlook.com (2603:10a6:20b:15::16) by AM6PR04MB4520.eurprd04.prod.outlook.com (2603:10a6:20b:24::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.17; Tue, 14 Sep 2021 13:51:21 +0000 Received: from AM6PR04MB4455.eurprd04.prod.outlook.com ([fe80::474:cd92:cc24:fa7]) by AM6PR04MB4455.eurprd04.prod.outlook.com ([fe80::474:cd92:cc24:fa7%7]) with mapi id 15.20.4500.019; Tue, 14 Sep 2021 13:51:20 +0000 From: David Goodenough To: pgsql-general@lists.postgresql.org Subject: Re: The tragedy of SQL Date: Tue, 14 Sep 2021 14:51:19 +0100 Message-ID: <14317593.GIT0WhtmHf@continuum> In-Reply-To: References: <4dc338ad-b0aa-4f4c-bd9c-4dc76dda9e8b@Spark> Content-Type: multipart/alternative; boundary="nextPart3281432.pdxAkEctzR" Content-Transfer-Encoding: 7Bit X-ClientProxiedBy: LO4P123CA0200.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a5::7) To AM6PR04MB4455.eurprd04.prod.outlook.com (2603:10a6:20b:15::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from continuum.localnet (83.151.204.138) by LO4P123CA0200.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a5::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Tue, 14 Sep 2021 13:51:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 61d7b6ca-ac4c-45c0-498f-08d97786bb8a X-MS-TrafficTypeDiagnostic: AM6PR04MB4520: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VzgNfjzWf6jhL/hQxnEnjWtNSS4HG8KA/5Z047bwq4xAoAZ+ezxavZ9hXgeNRw+82F7nXtzH9yzsDtMx728q6x7+UsZ95AOJo8xW0WZfasBKl2qb2TASjCWBAM2BM9pT4FkRhpl1WuP3uh8/7Iog60mPZYEl29H/I43+cQww9/y8b44XnXP3m6gOhXo8DzjHnkgM3/iLjKrpprpCM6ZXPREHZsWT9BL/ka+6qrzYapjrjYHkQfhIxnm/zaq/RHhemsnxK/050n8uElydTQVcXl512rb4WnYUra+/YAcZPw3yHwdnBCPZ3UqVhsnxzLJwcziDCZOLMKGlFh95KlaU5e0zHNkb4rxTIF4STKcXx7e3nwk8cmpgplydKO2Qe5QfIUIYoft8CdhIehxwH1H4vJrqw+ZeU25xv/00cbtWmm5R7Jkj0aX2v6hhJV7kQXYiS4lsMX2QUNcKN9iXPgCAc0vI2sE8MjvwHgCVSY9Esxl7cSDmeg24EXgc0F9aDPQmZKJJU8LVodr684KRfJyWh1ctxVps2Y5I9YAosQUGaD7HXGDO33DO2XMCA/1lYPO1tGRVqeyCXnJ+yBGaofyl9YVtYnahkGLLuSlJf18ajJE+kvyAilMEhwy++8qmc+C+RTlY1cxf9NEKEuRzJT2gCQkL7o7YMLfmHlA4Azvz+lEtnN0MsgYxB/x41U3ilC4MxwRHZ0eQ4ns7iXWjNUg24fYPRwDZwPxvj5WrMiIu8I180fgM5cPNPlhoT6mZPA7Pb6ieq3Fd3w5gs62MSOCHRL6qaK5nOzJXzlpg/vMBbeQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4455.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(396003)(376002)(39830400003)(346002)(136003)(366004)(8936002)(52116002)(6486002)(966005)(66556008)(66476007)(66946007)(83380400001)(186003)(53546011)(5660300002)(166002)(8676002)(2906002)(86362001)(956004)(38100700002)(38350700002)(9576002)(9686003)(44832011)(6512007)(3480700007)(316002)(478600001)(6506007)(26005)(6916009)(33716001)(39026012);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?EHxohk/VdMut/oswb2bYK84ZOVKP+lZw1ujxGmE+j3mUUiefj2UeToWtwMki?= =?us-ascii?Q?BTJIw/sbhqnnqiTL9RawZ4VnE7JlAg3TV92W2A3UdT6+yW2RJMdtnB4hVzle?= =?us-ascii?Q?+lCEcDhAXFufWTj/Ai2nd5LpxcRiXvnJWA30Smiptq0KfGKChnAyfRJHEXcD?= =?us-ascii?Q?ybp7aYfrB93vZ9xQCqbyRmLY7AEZJIml/1ETYFNvId3WM6dAM5aq1U0uvxAe?= =?us-ascii?Q?rmMN6kgUkqxylOTdbKo5wv3JYS3JsuXAShO+qqEHq4WmFJO+o6Rq/mDe0Cjr?= =?us-ascii?Q?4t+RHBLMTPIdbo54Dm56tFgyLlHTfjE7gRdcqtEx89vT8SiK3+l8ptqNJAoQ?= =?us-ascii?Q?CeNLL53djermqTWnZqby5bvhRj/iCcJLrGaK46K+o4F5W6cMTw3VwuUc7m3/?= =?us-ascii?Q?i05abMzdL3ddienvtl6pYFAcmsUfVaKbh/93qfGCEOZwCOEDX6DS1tllp8x9?= =?us-ascii?Q?CJTvEoMS54uP53p6IR0s4Y9te/27TsuBJZy6nwF8fo6SH5458dp/ifRuxjnU?= =?us-ascii?Q?D8ZTtMDeoyQlPUIm7oQc1BVVG1rXiBhiUd2xBnVHcw4kRTeHOXbptWDBCQUv?= =?us-ascii?Q?vS4ytxPffcbSX0Ue3elJgblveoZROoGg5taGft8SXSIQUmvfphuRANNvh9I6?= =?us-ascii?Q?bicm/5Pr0dZnybeIGS4S2AG3WuglWqWAt3MrjFNa7Tt3omXsrJwKnPMpZU/z?= =?us-ascii?Q?MKKLVAnw34oT/PjbcSMswBqrQTaC/axPY7yNHu5mYifVjfHBhekRU3n9SJRU?= =?us-ascii?Q?VnU1xv9SvXYPckQY2rWXRQM4+MbmvQ5LeQOEEvdUUBj+GtJA6zByAuK3H3n9?= =?us-ascii?Q?bHeFoB/SGxE0RYy/J9F8nWo+cjzTKHnkLHB2zx4yG3/ktmz6FX1iMBO+ItZM?= =?us-ascii?Q?D6hbumlOgKh/+n3GR2UdnqmcXPnnYSCxwO5Zx+T8X1m8Jh+cD7P1JsE39X4R?= =?us-ascii?Q?u0x8AV/mRupSZdvyxqCAgb8M49zsp8WadUo9tJGpCk/mzKsB7MWVDzSk6XhW?= =?us-ascii?Q?ChT/PnRx6Z3o/wnNt+0xIxbAtYxB4I5RyBtY7Zd2gCC+OAV5CIXMQ9KCQv1U?= =?us-ascii?Q?k1grfy62C0/30hDsG1d0qusOiuElzhqSfcxr8yAybwIj2tIIY7zz9SqmW+Za?= =?us-ascii?Q?MAhPpEb5srQj90qNjeCVVHMy0uMI2nOCqE99uHKnYEJ4vG3BYiOslpXyUSOb?= =?us-ascii?Q?5SZj+QK0XFf/JKHDqdl1UQ7OCtP5wAuhMGMIF7mC1ta9EUrj1GSdalei4vj4?= =?us-ascii?Q?Nfum4Spz2XYQu2yJRQLO5D1zqADCENcAmVEKbA4wJHvV97Yex5qPTqBkRO1Q?= =?us-ascii?Q?+gATv7PUg5XYAltMFbea42Gn?= X-OriginatorOrg: broadwellmanor.co.uk X-MS-Exchange-CrossTenant-Network-Message-Id: 61d7b6ca-ac4c-45c0-498f-08d97786bb8a X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4455.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2021 13:51:20.8469 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2443ed4f-5610-4485-b2cf-cebee941facb X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HpII9R8Y0h+AN5QuHpgElYqA+o9kgxafO4y/5tMXA0nLJG/sYGMB8jtxHmXY2gKDhdwz8h/0sdHbh/7LeW3heK1pFHsp8Ne8ELg6OhFGWYP61YDl4MHZdRdpJQeYZJUT X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4520 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --nextPart3281432.pdxAkEctzR Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Tuesday, 14 September 2021 14:06:13 BST Merlin Moncure wrote: > On Tue, Sep 14, 2021 at 12:32 AM Guyren Howe wrote: > > 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. > I've long thought that there is more algebraic type syntax sitting > underneath SQL yearning to get out. If you wanted to try something > like that today, a language pre-compiler or translator which converted > the code to SQL is likely the only realistic approach if you wanted to > get traction. History is not very kind to these approaches though and > SQL is evolving and has huge investments behind it...much more than 5 > million bucks. > > ORMs a function of poor development culture and vendor advocacy, not > the fault of SQL. If developers don't understand or are unwilling to > use joins in language A, they won't in language B either. > > merlin Back in the day, within IBM there were two separate relational databases. System-R (which came from San Hose) and PRTV (the Peterlee Relational Test vehicle). As I understand it SQL came from System-R and the optimizer (amongst other things) came from PRTV. PRTV (https://en.wikipedia.org/wiki/IBM_Peterlee_Relational_Test_Vehicle_(PRTV)[1]) did not use SQL, and was never a released product, except with a graphical add-on which was sold to two UK local authorities for urban planning. So there are (and always have been) different ways to send requests to a relational DB, it is just that SQL won the day. -------- [1] https://en.wikipedia.org/wiki/IBM_Peterlee_Relational_Test_Vehicle_(PRTV) --nextPart3281432.pdxAkEctzR Content-Transfer-Encoding: 7Bit Content-Type: text/html; charset="us-ascii"

On Tuesday, 14 September 2021 14:06:13 BST Merlin Moncure wrote:

> On Tue, Sep 14, 2021 at 12:32 AM Guyren Howe <guyren@gmail.com> wrote:

> > 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.

> I've long thought that there is more algebraic type syntax sitting

> underneath SQL yearning to get out.  If you wanted to try something

> like that today, a language pre-compiler or translator which converted

> the code to SQL is likely the only realistic approach if you wanted to

> get traction.  History is not very kind to these approaches though and

> SQL is evolving and has huge investments behind it...much more than 5

> million bucks.

>

> ORMs a function of poor development culture and vendor advocacy, not

> the fault of SQL. If developers don't understand or are unwilling to

> use joins in language A, they won't in language B either.

>

> merlin

Back in the day, within IBM there were two separate relational databases.  System-R (which came from San Hose) and PRTV (the Peterlee Relational Test vehicle).  As I understand it SQL came from System-R and the optimizer (amongst other things) came from PRTV.


PRTV (https://en.wikipedia.org/wiki/IBM_Peterlee_Relational_Test_Vehicle_(PRTV)) did not use SQL, and was never a released product, except with a graphical add-on which was sold to two UK local authorities for urban planning.


So there are (and always have been) different ways to send requests to a relational DB, it is just that SQL won the day.


--nextPart3281432.pdxAkEctzR--