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 1m2LKo-0000eL-4N for pgsql-hackers@arkaria.postgresql.org; Sat, 10 Jul 2021 22:20:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m2LKn-0002Bc-0f for pgsql-hackers@arkaria.postgresql.org; Sat, 10 Jul 2021 22:20:29 +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 1m2LKm-0002BT-Lp for pgsql-hackers@lists.postgresql.org; Sat, 10 Jul 2021 22:20:28 +0000 Received: from mail-il1-x131.google.com ([2607:f8b0:4864:20::131]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1m2LKi-0007Ck-FC for pgsql-hackers@lists.postgresql.org; Sat, 10 Jul 2021 22:20:27 +0000 Received: by mail-il1-x131.google.com with SMTP id k6so14813334ilo.3 for ; Sat, 10 Jul 2021 15:20:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=21ekc7wELa6AuVfXol2Fm3sbDfMrbbsrTNbN8BRNVEQ=; b=0JDDq70e24kzqt2zVvz6VgMCGsLaZBeGOagcmWTtP2NVBSGlGjlDwMR7hv/J/KMxn5 STT0H3B1Eb9iGhEpCs/Zpl82rqb2mefRbLBBOXxXdgsau/KBgyCta6TZd3tXdRG41FnC XhaqOrCGvrDeCv4pvqf5KLWGkkNqGNUoLL1wTyEwtAVQe6oZDIDueWJQJEdB1CvdZnym sEdTuyaVN1flBecvyeHAmcPDWKV8PlOFqiSiNf+Av+wj7PLQBFwKOeoyCJN0HfFc3WAf cXh8OO5Mpo+sfjxZ8yNqrMEYuvtiD+n/a52jwKUe30Q6bJt3q+oESPgCPWQ9CO7Qt45D maPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=21ekc7wELa6AuVfXol2Fm3sbDfMrbbsrTNbN8BRNVEQ=; b=SjzoSq1+ltP/dlecCOG7vXqp2ld0mtMhuJpJcdcAz1KJk2dthyd8keBJx2FlsZZAqx 03HhOx2jjnzB/kNf8SvESBrV0H+zcEkRQd2Nmbz6pnmn92s3R6saw+70Lugubs4DaW2y AuiRC+BZqsWUuUlzvEty3kjGobkp0v44Hj2TjRTQQkgquumTYBL/87/5cl/qyucSc8EP IJsBKRG40aXfI18Z6nF99jtL6r7YcTeX8pH/w8GTl1ak28dWoDAWDA26sptKutTZGj2u zWGAbOoWNvvpWC4FPPT/Dw0l6S/t2cXM7FWk3niCtziqxmTO6SAM09DYBiHQUDeiyBx4 qZqg== X-Gm-Message-State: AOAM533Y/t1sVX0llc9QJ5Eolu2yeNJoeN2/txvbh6bhPD3svDKw5eyR ncvZHmHYT8ce1qeZz/O6Y1hwmw== X-Google-Smtp-Source: ABdhPJye0fZ73RRaELvA549Y8vtH6CoVHqMfHDsDSHVs2AMo9MSTL8gHb0vtAfCLWhB8gnLLk4BE6Q== X-Received: by 2002:a92:a004:: with SMTP id e4mr30287065ili.299.1625955623342; Sat, 10 Jul 2021 15:20:23 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id g20sm5428825ilk.81.2021.07.10.15.20.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 10 Jul 2021 15:20:22 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 854CD800C52; Sat, 10 Jul 2021 17:20:21 -0500 (CDT) Date: Sat, 10 Jul 2021 17:20:21 -0500 From: Justin Pryzby To: Alexander Korotkov Cc: Alvaro Herrera , Noah Misch , Tom Lane , "Jonathan S. Katz" , Zhihong Yu , pgsql-hackers@lists.postgresql.org Subject: Re: unnesting multirange data types Message-ID: <20210710222021.GE1301@telsasoft.com> References: <202107101634.s6rujyk7wklj@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Jul 11, 2021 at 01:00:27AM +0300, Alexander Korotkov wrote: > On Sat, Jul 10, 2021 at 7:34 PM Alvaro Herrera wrote: > > On 2021-Jun-27, Alexander Korotkov wrote: > > > > > BTW, I found some small inconsistencies in the declaration of > > > multirange operators in the system catalog. Nothing critical, but if > > > we decide to bump catversion in beta3, this patch is also nice to > > > push. > > > > Hmm, I think you should push this and not bump catversion. That way, > > nobody is forced to initdb if we end up not having a catversion bump for > > some other reason; but also anybody who initdb's with beta3 or later > > will get the correct descriptions. > > > > If you don't push it, everybody will have the wrong descriptions. > > True, but I'm a bit uncomfortable about user instances with different > catalogs but the same catversions. On the other hand, initdb's with > beta3 or later will be the vast majority among pg14 instances. > > Did we have similar precedents in the past? It seems so. Note in particular 74ab96a45, which adds a new function with no bump. Although that one may not be a good precedent to follow, or one that's been followed recently. commit 0aac73e6a2602696d23aa7a9686204965f9093dc Author: Noah Misch Date: Mon Jun 14 17:29:37 2021 -0700 Copy-edit text for the pg_terminate_backend() "timeout" parameter. commit b09a64d602a19c9a3cc69e4bb0f8986a6f5facf4 Author: Tom Lane Date: Thu Sep 20 16:06:18 2018 -0400 Add missing pg_description strings for pg_type entries. commit a4627e8fd479ff74fffdd49ad07636b79751be45 Author: Tom Lane Date: Tue Feb 2 11:39:50 2016 -0500 Fix pg_description entries for jsonb_to_record() and jsonb_to_recordset(). commit b852dc4cbd09156e2c74786d5b265f03d45bc404 Author: Bruce Momjian Date: Wed Oct 7 09:06:49 2015 -0400 docs: clarify JSONB operator descriptions commit a80889a7359e720107b881bcd3e8fd47f3874e36 Author: Tom Lane Date: Wed Oct 10 12:19:25 2012 -0400 Set procost to 10 for each of the pg_foo_is_visible() functions. commit c246eb5aafe66d5537b468d6da2116c462775faf Author: Tom Lane Date: Sat Aug 18 16:14:57 2012 -0400 Make use of LATERAL in information_schema.sequences view. commit 74ab96a45ef6259aa6a86a781580edea8488511a Author: Alvaro Herrera Date: Wed Jan 25 13:15:29 2012 -0300 Add pg_trigger_depth() function commit ddd6ff289f2512f881493b7793853a96955459ff Author: Bruce Momjian Date: Tue Mar 15 11:26:20 2011 -0400 Add database comments to template0 and postgres databases, and improve