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 1gM1UC-0001jy-8u for pgsql-committers@arkaria.postgresql.org; Mon, 12 Nov 2018 01:57:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gM1UA-0007N1-12 for pgsql-committers@arkaria.postgresql.org; Mon, 12 Nov 2018 01:57:54 +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 1gM1U9-0007Mu-Dw for pgsql-committers@lists.postgresql.org; Mon, 12 Nov 2018 01:57:53 +0000 Received: from mail-qk1-x743.google.com ([2607:f8b0:4864:20::743]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gM1U5-0003fi-Fw for pgsql-committers@lists.postgresql.org; Mon, 12 Nov 2018 01:57:51 +0000 Received: by mail-qk1-x743.google.com with SMTP id d19so10895946qkg.5 for ; Sun, 11 Nov 2018 17:57:49 -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=RmPa4QlVumKY4uZRcuKARLeN7dFBjy2MWZbtpNAqQSI=; b=XIUbkk2iqn0iTRy+rLyQmeinOr5nD1gRtNypA537sLgwBPckynTRsN9u2tQpAlXcE8 f8MuQHV9la4OFvtStdZ3jPYQmTo1o4HHp0LGBYFj2oSZLB/3YzSVH0aEudBcCqHf3iLx rBsT2vvhuty6+/lD5Rg8L2WrOpBWM/kEUiaxj3MZQ4DYcHNB/gvl+xhJj2a72jH4n8TH t5dLEZMCaVh3K55fX1yLl1oAlpU0C6VNt4nayMhqpsjW8nA1Evzw2FnVy3bYYE+Jgz6I cJO04QGKg+AWFoX7tA8jzsaN6ReONJjIIIeOuBdEAQ2H3WBClS1maQu6EtwpCNuoINWo K9nA== 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=RmPa4QlVumKY4uZRcuKARLeN7dFBjy2MWZbtpNAqQSI=; b=pVqkvJPSy/EsOUm6VBxx69o+UbCulpyAm1MiqW4qXTIpx9b2wA+WHu8BbeDLthUmpW SO5Pp3AqtJuxs1VKzsKp60+t3w7xUQtQBNGnlReZb6xJ+JeJQWBpa0BEHGnYkJo0SSxp 5N170uEi3kyOPOnARRe6Fb7KyrtdLW/6xFOe0j8X8NezbdcsCzmQ3Lo+fBfy/ddnU1X7 SolERariIJVcUtebjOmjkcN5L2CvI5jMT4jpqri6wRiAUAdOqDfxG1H/gVOiFLO07uBk rQ3UpO+Qfi5UEaVTOEeHy16DBu5r2ZH/C+PoZ2RyUhfL0MO9g4dToF7QRK/JL/gi4I2b ClNA== X-Gm-Message-State: AGRZ1gIkApUIVeo51bWRjzxqSp1VYkFDBytyraj8MKF65EiG0JZqzWmb TeRuvD/0N/39o1gU3eLSNRuVhA== X-Google-Smtp-Source: AJdET5ex2kM86bNoVVlSuhHbM94rfm2VZeVFfY6ODFndV0e8lJteiSf8Dtv94CAzcH3lootnUrdq/g== X-Received: by 2002:a37:2452:: with SMTP id w79mr16628227qkg.105.1541987868384; Sun, 11 Nov 2018 17:57:48 -0800 (PST) Received: from alvin.alvh.no-ip.org ([201.186.80.75]) by smtp.gmail.com with ESMTPSA id d124-v6sm7107446qkf.85.2018.11.11.17.57.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 11 Nov 2018 17:57:47 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 91838A3E; Sun, 11 Nov 2018 22:57:44 -0300 (-03) Date: Sun, 11 Nov 2018 22:57:44 -0300 From: Alvaro Herrera To: Peter Eisentraut Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Remove dead foreign key optimization code Message-ID: <20181112015744.xpf2aysj74ihrao4@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Nov-10, Peter Eisentraut wrote: > Remove dead foreign key optimization code > > The ri_KeysEqual() calls in the foreign-key trigger functions to > optimize away some updates are useless because since > adfeef55cbcc5dc72a772777f88c1be05a70dfee those triggers are not enqueued > at all. (It's also not useful to keep these checks as some kind of > backstop, since it's also semantically correct to just run the full > check even with equal keys.) > > Reviewed-by: Daniel Gustafsson Please don't omit "Discussion:" tags from commit messages. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services