Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eiqNB-00030j-B6 for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Feb 2018 23:40:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eiqN8-0001TJ-Qg for pgsql-hackers@arkaria.postgresql.org; Mon, 05 Feb 2018 23:40:26 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eiqN8-0001T9-Au for pgsql-hackers@lists.postgresql.org; Mon, 05 Feb 2018 23:40:26 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eiqN1-0001fG-55 for pgsql-hackers@postgreSQL.org; Mon, 05 Feb 2018 23:40:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w15NeF5B022675; Mon, 5 Feb 2018 18:40:15 -0500 From: Tom Lane To: Tomas Vondra cc: Mark Dilger , Alvaro Herrera , pgsql-hackers@postgreSQL.org Subject: Re: WIP: BRIN multi-range indexes In-reply-to: <0afde2fc-e160-004f-8fe2-c65302ac3760@2ndquadrant.com> References: <20180123200537.gfx5hxcp5k5hktpe@alvherre.pgsql> <821c4c1d-592e-8916-e323-04607b11777e@2ndquadrant.com> <104E8BB8-35FF-4AA8-9871-6AFF04E4CAF3@gmail.com> <0afde2fc-e160-004f-8fe2-c65302ac3760@2ndquadrant.com> Comments: In-reply-to Tomas Vondra message dated "Mon, 05 Feb 2018 21:59:48 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <22673.1517874015.1@sss.pgh.pa.us> Date: Mon, 05 Feb 2018 18:40:15 -0500 Message-ID: <22674.1517874015@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tomas Vondra writes: > Yeah, that's what I've been wondering about too. There's also this > comment in nabstime.h: > /* > * Although time_t generally is a long int on 64 bit systems, these two > * types must be 4 bytes, because that's what pg_type.h assumes. They > * should be yanked (long) before 2038 and be replaced by timestamp and > * interval. > */ > But then why adding BRIN opclasses at all? And if adding them, why not > to test them? We all know how long deprecation takes, particularly for > data types. There was some pretty recent chatter about removing these types; IIRC Andres was annoyed about their lack of overflow checks. I would definitely vote against adding any BRIN support for these types, or indeed doing any work on them at all other than removal. regards, tom lane