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 1mQMwq-0003TP-5d for pgsql-general@arkaria.postgresql.org; Wed, 15 Sep 2021 04:55:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mQMwo-0007PN-OZ for pgsql-general@arkaria.postgresql.org; Wed, 15 Sep 2021 04:55:02 +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 1mQMwo-0007P0-3P for pgsql-general@lists.postgresql.org; Wed, 15 Sep 2021 04:55:02 +0000 Received: from troubleshooters.com ([69.5.27.237]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mQMwf-0003aF-Qd for pgsql-general@lists.postgresql.org; Wed, 15 Sep 2021 04:55:01 +0000 Received: (qmail 15059 invoked from network); 15 Sep 2021 04:54:50 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; h=X-Originating-IP:Date:From:To:Subject:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding; s=default; d=troubleshooters.com; b=hNGi5Z/w+r6DrlRtrps2PuIUIFwR5Shb/YHrd9HyE1Owkp3u/6USfhSjOolsztDkja2RF0A17e+aUFR+o9F6ZWPL07RyaDh/oQwtrRuYnRNFcvY09trx2XwVzntt29qRoL+0VR2rqZjurOwV5VNni78Sp0zq64YxCwOqouf3P7I=; DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/simple; d=troubleshooters.com; s=default; t=1631681690; bh=afRaz2wJ9rwQsTLyrcrYwO5B3QE=; l=1171; h=X-Originating-IP:Date:From:To:Subject:Message-ID:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=jbB7UvCYIDG5FElK3809/1IgI3WZ1U7LnePBZJgOPXMrvbcKa7eyspAox0wAr/IVk hdBdHRPJ/HiQ63bOQUQRkQswW2Qu7nZFdEwfIjY41Vi0RdE13W24wyJdMS0vZJieTw NZ7HNFng78s3YHiJgsNmVHYFcq07EKL+pJchP1Ic= X-Originating-IP: [184.90.157.212] Date: Wed, 15 Sep 2021 00:54:49 -0400 From: Steve Litt To: pgsql-general@lists.postgresql.org Subject: SQL queries as sets: was The tragedy of SQL Message-ID: <20210915005449.150f2e45@mydesk.domain.cxm> In-Reply-To: References: <4dc338ad-b0aa-4f4c-bd9c-4dc76dda9e8b@Spark> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Rich Shepard said on Tue, 14 Sep 2021 05:49:07 -0700 (PDT) >On Mon, 13 Sep 2021, Guyren Howe wrote: > >> They are making a decent decision. SQL is a *fucking terrible* >> language, which I don=E2=80=99t blame them for not wanting to learn. =20 > >>> SQL is not the problem. Problem are the devs. I love SQL. I hate >>> orms. The problem with databases is people refuse to treat it as >>> the entity it is and want to use their beautiful OO system. Problem >>> is databases are not OO. We need to recognize that and treat >>> databases as databases. =20 > >Guyren/Hemil, > >As a non-SQL expert who's used postgres since 1997 I've come to >believe the basic issue is that SQL is based on sets, neither >procedural or object oriented. Few people think in sets so they try to >fit SQL into what they know rather than understand the how sets work. Rich, could you please elaborate on SQL queries being based on sets? I never thought of it that way, and would like to hear your related thoughts. SteveT Steve Litt=20 Spring 2021 featured book: Troubleshooting Techniques of the Successful Technologist http://www.troubleshooters.com/techniques