Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gzeX8-0007vG-LC for pgsql-general@arkaria.postgresql.org; Fri, 01 Mar 2019 09:32:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gzeX7-00088r-6B for pgsql-general@arkaria.postgresql.org; Fri, 01 Mar 2019 09:32:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gzeX6-00085C-QM for pgsql-general@lists.postgresql.org; Fri, 01 Mar 2019 09:32:44 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gzeX3-0004hx-Ot for pgsql-general@lists.postgresql.org; Fri, 01 Mar 2019 09:32:43 +0000 Received: from [192.168.127.1] (port=18748 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1gzeX1-000C01-1u for pgsql-general@lists.postgresql.org; Fri, 01 Mar 2019 09:32:39 +0000 Received: from [127.0.0.1] (port=29184 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1gzeX0-000LRc-3x for pgsql-general@lists.postgresql.org; Fri, 01 Mar 2019 09:32:38 +0000 From: Andrew Gierth To: PostgreSQL General Subject: Re: Overloaded && operator from intarray module prevents index usage. In-Reply-To: <16afa0dd-5520-34bd-0ea5-bedc8e2096cb@gmail.com> (Ron's message of "Thu, 28 Feb 2019 20:19:46 -0600") Message-ID: <877edjdjqx.fsf@news-spur.riddles.org.uk> References: <10517.1551372290@sss.pgh.pa.us> <1650.1551393260@sss.pgh.pa.us> <4364c5c4-da6f-a532-8a9b-c5f2a80b0882@gmail.com> <16afa0dd-5520-34bd-0ea5-bedc8e2096cb@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Fri, 01 Mar 2019 09:32:37 +0000 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: Precedence: bulk >>>>> "Ron" =3D=3D Ron writes: Ron> Arrays are -- by definition -- not atomic, and so they Ron> fundamentally break the model that relational databases are Ron> founded upon.=C2=A0 If you want to be a good database designer, don't Ron> use arrays. "In theory there is no difference between theory and practice, but in practice there is." Sometimes a good database designer has to tell the theoreticians where to get off, and do something more pragmatic. --=20 Andrew (irc:RhodiumToad)