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 1nIPen-0006Oy-1k for pgsql-general@arkaria.postgresql.org; Fri, 11 Feb 2022 06:43:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nIPel-00079g-DM for pgsql-general@arkaria.postgresql.org; Fri, 11 Feb 2022 06:43:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nIPek-00079V-Sg for pgsql-general@lists.postgresql.org; Fri, 11 Feb 2022 06:43:47 +0000 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nIPef-0002SR-Lh for pgsql-general@lists.postgresql.org; Fri, 11 Feb 2022 06:43:45 +0000 Received: by mail-pf1-x436.google.com with SMTP id d187so14544170pfa.10 for ; Thu, 10 Feb 2022 22:43:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:message-id:in-reply-to:references:subject :mime-version; bh=LE0hOk08NFJd3cZLh3WEMpkRu3rY8h97Yme+2tjx17k=; b=amRaq5A/RWkOkpqpqK/+s2dNm+CHpQgKunjKNZJeMqfq/ZFLR/AkJlaIQgmM62oceV YWw4ajyxXt1eM0e5RD1E8/HhwnFRpUsfxV14f+Mz0cuzrUzqoGWPX7byyY4t1u/JtoDr SY/TQedWvMuAV/3/c1ChIEozO9PuhK5wk9J3v0ITG87cXDgplLfL/ZyUq/Av7gpdj02E Z3jlv0wcnqvv8U5r9ckJKaNkxnIc1kDDLoL6Bu/3CXreEbrhm7uB73wo/Sonl4gElDXe +LwCAEZcVQvCiyI4g+4UCNR04zyVgU0wfoeErrCxWAtCEUpZIjGgQ1Ymv87Tg7h4wk9j H/7Q== 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:cc:message-id:in-reply-to :references:subject:mime-version; bh=LE0hOk08NFJd3cZLh3WEMpkRu3rY8h97Yme+2tjx17k=; b=3FpfJ6PYn2ebrpAsK+YmSB+exWVIsGBir2w704XdToLRJfKLfTV3Wu7C8ufnQjJpOb PXtaPOddPqIc7F49tEZtSQ7OoBo/V4ZKzhANCuJ7Tr18ZKlZ6R2NUYBNCBQHP4h5VIrt bLbbyoYIfopOIT2Ki/YDOYOF6IsOdPgB7lutRuPOXWgqHiTBY88oCcBXBjkz76goysXa 9N5xsJ3QyOBKjvSL4DfLiaw8P/vy/OGxXZJZjlKPe5cvi3MLoEPEeKwtiiZ0CePEvLYI z5/xx+7HqpNU3CyNveQta3qX2nj9MrixdoqOV3h7z+SLeacMUEdUa4isfpXDBReppayl /muw== X-Gm-Message-State: AOAM533pdu3XJaucI5vvwNNL06BHa25QiRAyoX/hbJ3NK0Qy4R9w7bPS Mm9XUWKsaFTygSW43x1WLns= X-Google-Smtp-Source: ABdhPJy95v5cHdejpRWyRvIq8cNzdcMGCdQ9Qknn7l6plbLNLLgC/9OFBvkugE5idAXpO8M+670bWQ== X-Received: by 2002:a05:6a00:1c5e:: with SMTP id s30mr225158pfw.43.1644561820466; Thu, 10 Feb 2022 22:43:40 -0800 (PST) Received: from [2600:8801:8800:2:100::] ([2600:8801:8800:2::10]) by smtp.gmail.com with ESMTPSA id u13sm27157654pfg.151.2022.02.10.22.43.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Feb 2022 22:43:39 -0800 (PST) Date: Thu, 10 Feb 2022 22:43:25 -0800 From: Guyren Howe To: Raymond Brinzer , Tom Lane Cc: Mladen Gogala , "=?utf-8?Q?pgsql-general=40lists.postgresql.org?=" Message-ID: In-Reply-To: <1982299.1644561177@sss.pgh.pa.us> References: <7117322c-185c-4283-990d-6646d8476409@Spark> <20220210172229.4it7ioddvrtmws37@hjp.at> <20220210172545.f7vtdcrg325v3xlx@hjp.at> <937E9BA7-F8D9-4547-A171-AC1497470A0C@gmail.com> <1d76a9dc-1260-fea5-86ee-b6ba7bad2927@gmail.com> <7523152a-fa84-4794-898d-bc50f8d2c896@Spark> <1982299.1644561177@sss.pgh.pa.us> Subject: Re: Can we go beyond the standard to make Postgres radically better? X-Readdle-Message-ID: f87c88e1-d4e8-4fd3-a1a5-4dbfc0db6aef@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="6206059a_4e6afb66_10f0d" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --6206059a_4e6afb66_10f0d Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I get all this. Give me a couple million bucks, and I=E2=80=99ll hire som= e of the Postgres devs to build a new database. We could crib some of the= low-level code from Postgres, but everything above the low level would n= eed to be rewritten. I was proposing more that we at least provide higher-level, more general,= orthogonal etc features in the SQL we have now. eg first-class functions= could be added to SQL reasonably easily. On =46eb 10, 2022, 22:32 -0800, Tom Lane , wrote: > Raymond Brinzer writes: > > Will it be accepted here=3F I don't know; I'm not an insider, or in a= > > position to say. But it'd be a much better pitch than a pep talk, or > > speaking in generalities about SQL. And that's coming from someone wh= o > > actually agrees with you. I'm 100% on board with the idea that someth= ing > > better is (badly) needed. But is the idea, here, really to talk a hig= hly > > successful project into doing a 180 based on this sort of argument=3F= If > > only the people writing the code saw the light, they'd go read the Da= tomic > > site, and start overhauling PostgreSQL=3F > > Nah, probably not. I mean, not only are we implementing SQL, but > we're implementing it in C. I used better languages than C back > in the seventies ... but here we are. Practical acceptance is > all about infrastructure and compatible tooling, which SQL and C > both have in spades, while academic designs really don't. > > Also, I fear this discussion underestimates the difficulty of > putting some other query language on top of Postgres. I know > you'll say =22but the Berkeley guys pasted SQL onto a QUEL engine > back when, so how hard can it be=3F=22 In the first place, that > was done on top of maybe ten years worth of work, but now there's > another twenty-five years of development agglomerated on top of > that. So moving things would be more than 3X harder, even if > you make the very-naive assumption that the difficulty is merely > linear. In the second place, QUEL and SQL aren't that far apart > conceptually, and yet we've still had lots of problems that can > be traced to their incompatibilities. Something that was really > different from SQL would be a nightmare to embed into PG. I'll > just point out one example: if you don't like SQL's semantics for > NULL (which no I don't much like either), changing that would > probably require touching tens of thousands of lines of code just > in the PG core, never mind breaking every API used by extensions. > > So for better or worse, Postgres is a SQL engine now. If you > want Datalog or =24other=5Flanguage, you'd be better off starting > or contributing to some other project. > > That's not to say that we can't do stuff around the margins. > The idea of =22select all columns except these=22, for instance, > has been discussed quite a bit, and would probably happen if > we could get consensus on the syntax. But we're not going to > throw away thirty-five years' worth of work to chase some > blue-sky ideas. > > regards, tom lane --6206059a_4e6afb66_10f0d Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
I get all this. Give me a couple million bucks, and= I=E2=80=99ll hire some of the Postgres devs to build a new database. We = could crib some of the low-level code from Postgres, but everything above= the low level would need to be rewritten.

I was proposing more that we at least provide higher-level, more general,= orthogonal etc features in the SQL we have now. eg first-class functions= could be added to SQL reasonably easily.
On =46eb 10, 2022, 22:32 -0800, Tom= Lane <tgl=40sss.pgh.pa.us>, wrote:
Raymond Brinzer <ray.brinzer=40gmail.com> writes:
Will it be accepted here=3F I don't know; I= 'm not an insider, or in a
position to say. But it'd be a much better pitch than a pep talk, or
speaking in generalities about SQL. And that's coming from someone who actually agrees with you. I'm 100% on board with the idea that something<= br /> better is (badly) needed. But is the idea, here, really to talk a highly<= br /> successful project into doing a 180 based on this sort of argument=3F If<= br /> only the people writing the code saw the light, they'd go read the Datomi= c
site, and start overhauling PostgreSQL=3F

Nah, probably not. I mean, not only are we implementing SQL, but
we're implementing it in C. I used better languages than C back
in the seventies ... but here we are. Practical acceptance is
all about infrastructure and compatible tooling, which SQL and C
both have in spades, while academic designs really don't.

Also, I fear this discussion underestimates the difficulty of
putting some other query language on top of Postgres. I know
you'll say =22but the Berkeley guys pasted SQL onto a QUEL engine
back when, so how hard can it be=3F=22 In the first place, that
was done on top of maybe ten years worth of work, but now there's
another twenty-five years of development agglomerated on top of
that. So moving things would be more than 3X harder, even if
you make the very-naive assumption that the difficulty is merely
linear. In the second place, QUEL and SQL aren't that far apart
conceptually, and yet we've still had lots of problems that can
be traced to their incompatibilities. Something that was really
different from SQL would be a nightmare to embed into PG. I'll
just point out one example: if you don't like SQL's semantics for
NULL (which no I don't much like either), changing that would
probably require touching tens of thousands of lines of code just
in the PG core, never mind breaking every API used by extensions.

So for better or worse, Postgres is a SQL engine now. If you
want Datalog or =24other=5Flanguage, you'd be better off starting
or contributing to some other project.

That's not to say that we can't do stuff around the margins.
The idea of =22select all columns except these=22, for instance,
has been discussed quite a bit, and would probably happen if
we could get consensus on the syntax. But we're not going to
throw away thirty-five years' worth of work to chase some
blue-sky ideas.

regards, tom lane
--6206059a_4e6afb66_10f0d--