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 1j9rWS-0007PB-Kt for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Mar 2020 14:30:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j9rWR-0005Eg-G1 for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Mar 2020 14:30:47 +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 1j9rWR-0005EZ-3Z for pgsql-hackers@lists.postgresql.org; Thu, 05 Mar 2020 14:30:47 +0000 Received: from mail-qv1-xf42.google.com ([2607:f8b0:4864:20::f42]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j9rWO-0007zB-T8 for pgsql-hackers@lists.postgresql.org; Thu, 05 Mar 2020 14:30:45 +0000 Received: by mail-qv1-xf42.google.com with SMTP id s15so2483046qvn.8 for ; Thu, 05 Mar 2020 06:30:44 -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=FxhFwMAz18xWy97hD1qn0lFjkJY9JNy6KW9sz29Y968=; b=r0zeJqb0IeGN2/0uFtvjMi4vBjIvcSpgXtIVAdUkVBuhJ13/jjq8l8x04+eqHryx6l WlU45X1qajX0vYSULFKcRROZzRdkKSBNWcAEyx5Ygz9upN7bnleXGp5TMZokArmE3rcq jxs7wSc2xrULRaqUhqo+WndUDyCwO1FHqvoBiLgvNITa5bEsAMEa2+PJBp4r/e34Yn9+ t6Ze8MWOljWNvFlgwAAlxMvs38CuLScwFUZ5Ksl4YrxjQV65OCTwTaEFBLowSwmihHS6 /sL3Hqg6c862XRc8QLWoauGWG2hAH+PLgtzRDc1X/ASzu+I4hIwRDATi009yPsMCA65/ cc/A== 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=FxhFwMAz18xWy97hD1qn0lFjkJY9JNy6KW9sz29Y968=; b=unlcCyG9/OQetPiJRKsP/mZhZD4DeEC4o9SvxV1RAR84tCG0pfqGxiws8wNX5paDoP Aym2ocXOU4ENx1ujB5XpJovgDkyxUItDvZn8iuMnzC1vV4o4xAiBZxPQB+5OUZrV5gJ/ rMF+uvn9AUqwkvocSIuVW1CAJFafPtEClioHK/phlyTL+fq0saF+kETCUwHGmtswMcwI wQ7fqtBznq3OdZot3JSVPkBdmiGayPCVtgLacuycOW1LZBI5iWPhlhOczcTT+QTNcOW1 X3pFOOZ9/vG3Wz6iOnKx99m6zDo0/ukrTWd1hlqKirLNYU9kgtZo2HhscUHlWr4GFF9w Pw7w== X-Gm-Message-State: ANhLgQ2GX1nr6qTrmjJE9ebDsRXgak0jU5aUTPAxhjRm+Ocxwk5qLsCv ueYHk89a/UPZ9lqj5uC7wB3wP4ly6SSwacPwwwdb2PE0xrmOp8ar5AmPvwjo84of00L4PNccZem gJB5rp2R09l3OXQ1obJXVROYC2wWZsJ/H+6hYx+CxdYAEbd0TJoo0f09R/RN8Wudwf2VfS6ZYo6 5SGh92n+h5VSZbSg== X-Google-Smtp-Source: ADFU+vvtWwLEnvRWO+I6iLxMnm157Wh8IFbwe5alaxmluHiYKoBVF9/Afq5uID1ZWV70z0Kf+bF3hQ== X-Received: by 2002:a0c:c389:: with SMTP id o9mr6847552qvi.232.1583418643794; Thu, 05 Mar 2020 06:30:43 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([179.56.30.174]) by smtp.gmail.com with ESMTPSA id p77sm13345517qke.18.2020.03.05.06.30.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Mar 2020 06:30:43 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 6BE6D3007D2; Thu, 5 Mar 2020 11:30:41 -0300 (-03) Date: Thu, 5 Mar 2020 11:30:41 -0300 From: Alvaro Herrera To: Daniel Gustafsson Cc: Postgres hackers Subject: Re: Retiring support for pre-7.3 FK constraint triggers Message-ID: <20200305143041.GA7031@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <805874E2-999C-4CDA-856F-1AFBD9DFE933@yesql.se> 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, Daniel Gustafsson wrote: > While looking at the tg_updatedcols patch I happened to notice that we still > support pre-7.3 constraint triggers by converting them on the fly. AFAICT this > requires a pre-7.3 dump to hit. > > This was added in late 2007 in a2899ebdc28080eab0f4bb0b8a5f30aa7bb31a89 due to > a report from the field, but I doubt this codepath is excercised much today (if > at all). pg_dump's support for server versions prior to 8.0 was removed by commit 64f3524e2c8d (Oct 2016) so it seems fair to remove this too. If people need to upgrade from anything older than 7.3, they can do an intermediate jump. > Having code which is untested and not excercised by developers (or users, if my > assumption holds), yet being reachable by SQL, runs the risk of introducing > subtle bugs. Is there a usecase for keeping it, or can/should it be removed in > 14? That would still leave a lot of supported versions to upgrade to in case > there are users to need this. Unless there are immediate -1's, I'll park this > in a CF for v14. I know it's a late in the cycle for patches in commitfest, but why not consider this for pg13 nonetheless? It seems simple enough. Also, per https://coverage.postgresql.org/src/backend/commands/trigger.c.gcov.html this is the only large chunk of uncovered code in commands/trigger.c. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services