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.92) (envelope-from ) id 1j9vMm-0005E8-HT for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Mar 2020 18:37:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j9vMl-0005ta-Cp for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Mar 2020 18:37:03 +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 1j9vMk-0005s2-Rz for pgsql-hackers@lists.postgresql.org; Thu, 05 Mar 2020 18:37:03 +0000 Received: from mail-qt1-x843.google.com ([2607:f8b0:4864:20::843]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j9vMi-0001fx-KH for pgsql-hackers@lists.postgresql.org; Thu, 05 Mar 2020 18:37:01 +0000 Received: by mail-qt1-x843.google.com with SMTP id a4so4902793qto.12 for ; Thu, 05 Mar 2020 10:37:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=PsTiUcRO6vw5nDT8KiP7MMtntViMNFgYSviv+aQHwvo=; b=kDjKNnFTjIucIQnl3limYtugZUic5QgTkU1KNH5DGXmGoKaM25nclfXSfhp8hz+JxG h3NAOsL+JpJqeGB6CNOHJ7IcgxfsDI6vkDBh+9zPnJOI//S7zHuaPPPkg1bld1HAFFwg UY+lvtp2M3c1HKuow5Nd7G0K6UkXgSgAyx4GLVHPP4sgWdp62g6q/uDctgC3mxQP7fja G9EczVBb9S+v1+cLU3rAez+w3jFC/fvF9Cnwk/sZLNwxk3VI7kNYBJhfKiYdJxY1+EM/ mWGUEGV1PGfoCBHvT3cYVQmQ59JHBOhuiR2gnMSdzms+K0378RdNE4hAUgKzYBBSBMQK bO1A== 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:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=PsTiUcRO6vw5nDT8KiP7MMtntViMNFgYSviv+aQHwvo=; b=o6Aq5r8A8KUejb8Vw6ZB9r4sPtTvOY+EZBOHLXk4GTiwLYql246OSRNNrFE8nfBM+w GsqO00RXuTaBFnBmuORdC5671eXdWQklLTQM9zu1QZkEsXoGMny/tUGzNyzh1PQZiubP v7FrHIz32hOm8NBpGlaC1W6om8mJ9tEXUVVZIfsXIn3UQ8CUNF7M6pkYF31i4cHLQOZ4 2yGvTgMZKC1lOuYDy1dCumh/V6u7tQu3Ez9tELRuQacmOKwIHB4le9zBMO5wFMP269/G AlT5xpwAVkMDh0a1Y5hztWnkOou/p8hAhKY0ZVlhc17EQiYsQC/J6nScKTz1+it96wy+ 5dCg== X-Gm-Message-State: ANhLgQ2OhO75ND2vxCv1PTTt+JpYuatVp0Z5YaCpI/UcY0898bY6FaPc kD4Sd9BUn6XgyxW19gaEYuDX2+0BNbhSov6Wo4KlhtkGOmJzEhrwQaJH+7sm7ptyB+cX8nfkhVi TB4imoraPZEDz9Z8doXjRzACwfr2c9XFgYwMWqFQWlV9FvZEqdvCzhxjSIIfOOMZV+Khk1NBd2j 1IWckgj93dOxtaDQ== X-Google-Smtp-Source: ADFU+vseeHVZETIv2si4FPv9symzi8oiB/1d3qqmU1ucO8VMa+XkgahIXroFfxhC36rs/x44tJ01/A== X-Received: by 2002:ac8:6055:: with SMTP id k21mr50568qtm.242.1583433418626; Thu, 05 Mar 2020 10:36:58 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([201.186.208.119]) by smtp.gmail.com with ESMTPSA id p18sm16013783qkp.47.2020.03.05.10.36.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 10:36:58 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 0DE403007D2; Thu, 5 Mar 2020 15:36:56 -0300 (-03) Date: Thu, 5 Mar 2020 15:36:56 -0300 From: Alvaro Herrera To: Tom Lane Cc: Daniel Gustafsson , Postgres hackers Subject: Re: Retiring support for pre-7.3 FK constraint triggers Message-ID: <20200305183656.GA24065@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3685.1583422389@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Mar-05, Tom Lane wrote: > As long as we're thinking of zapping code that is long past its sell-by > date, I propose getting rid of this stanza in indexcmds.c, which > basically causes CREATE INDEX to ignore certain opclass specifications: I agree, this should be fine to remove. > Elsewhere in indexcmds.c, there's this: > > /* > * Hack to provide more-or-less-transparent updating of old RTREE > * indexes to GiST: if RTREE is requested and not found, use GIST. > */ > if (strcmp(accessMethodName, "rtree") == 0) > { > ereport(NOTICE, > (errmsg("substituting access method \"gist\" for obsolete method \"rtree\""))); > accessMethodName = "gist"; > tuple = SearchSysCache1(AMNAME, PointerGetDatum(accessMethodName)); > } > > which dates to 8.2 (2a8d3d83e of 2005-11-07). This is less bad than the > other thing, since it won't affect the behavior of any command that > wouldn't otherwise just fail; but maybe its time has passed as well? > Although Alvaro's point comparing these behaviors to pg_dump's support > cutoff of 8.0 suggests that maybe we should leave this one for now. Yeah, dunno, 'rtree' is even immortalized in tests; commit f2e403803fe6 as recently as March 2019 was seen modifying that. (Another curious factoid is that SQLite supports something that vaguely looks rtreeish https://sqlite.org/rtree.html -- However, because it doesn't use the same syntax Postgres uses, it's not a point against removing our hack.) I guess we can wait a couple years more on that one, since it's not damaging anything anyway. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services