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 1gsCcZ-0000YT-V0 for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Feb 2019 20:19:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gsCcX-0003pR-Ly for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Feb 2019 20:19:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gsCcX-0003iX-Dr for pgsql-hackers@lists.postgresql.org; Fri, 08 Feb 2019 20:19:33 +0000 Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gsCcU-00016x-H2 for pgsql-hackers@postgresql.org; Fri, 08 Feb 2019 20:19:32 +0000 Received: by mail-qt1-x844.google.com with SMTP id y4so5403576qtc.10 for ; Fri, 08 Feb 2019 12:19:29 -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=uDV9dmhuLQB8CZLl4KSdG3Ncmna4U6LAXKDC3t3cmfE=; b=H/gTzkG7XikHjwFYtJHbsBEj5bJKsxBIXPgtcnF+eKxXCF9pLBwyIxkXvrUVO/Mvjy o0rw/RZgblFmoiumGdmh5h5i7GTo0aFR7OVgvuhPU/Il+8akQKKzzMzjodK/PK+RMrPH mLpD2Z7MutEFIJvHqhNKn2uvT/5p9pB45oenc4HriI8kruK1IMpIke3TeCfgIx1m1lnl uISOiYa/qGrPgsWh/+FQ3+ap/AE/XacThOdLYttxZQZ/cHtoZChlvlmxjyULLp+axhV1 QKvRT3b2XGoRzw7kXVYJKBonVCZ4MfVckXWgOPXMAEXIOBu2ZBTyJhaMyMvBxWYguj+K Eo0g== 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=uDV9dmhuLQB8CZLl4KSdG3Ncmna4U6LAXKDC3t3cmfE=; b=h7E/dTS9lgjocUsECWmvfSNet+7d3nMAccx/z2Q7DnQARqnojU1V2yLVCmRT/AzKZs wyI6+7LB8yJMBVbYVLUqpcE4wMkmQ/vmOzeRG9Kc4AtL2vPB3KfUPqvv2R5j904HFutJ r00cvO14W4anmNlmSyrKupd/itfQ2FHM4ilRqlESvdDPs4U/4mJviGxYh/57MXd3mhQd yKBQCkg7I3SY9hLkIvAPq6MhOzr2uLncKdT0kzKqGnUJTySwXltFY4U7pWqT9DGIw+lr //qFyFXzgMLh5xEcmg1YVEP7XY+C1z+u036YJXmml9j3fq/d8OMS2K27oZtEjrQjhjPQ 1csg== X-Gm-Message-State: AHQUAual3jg/CN5oZ+vRVCFy5NPz/eZAmmlg77u9wiVmS9wfB4jqav8I 32P3Vx7Y2D4cnFMk2KCXlCiBmmzDUDY= X-Google-Smtp-Source: AHgI3IYHzqprloSYpHbX1w3IQ+OnqJsTdaWIhDEhUTSLpbobyuvRzLtPPnbe6Q5m8Llzo3yGNDrQWg== X-Received: by 2002:a0c:d132:: with SMTP id a47mr14605389qvh.116.1549657168246; Fri, 08 Feb 2019 12:19:28 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id b51sm2730240qtb.32.2019.02.08.12.19.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 08 Feb 2019 12:19:27 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 675BE1245DA; Fri, 8 Feb 2019 17:19:25 -0300 (-03) Date: Fri, 8 Feb 2019 17:19:25 -0300 From: Alvaro Herrera To: Tom Lane Cc: Peter Geoghegan , PostgreSQL Hackers Subject: Re: Fixing findDependentObjects()'s dependency on scan order (regressions in DROP diagnostic messages) Message-ID: <20190208201925.GA5901@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <18885.1549642539@sss.pgh.pa.us> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Feb-08, Tom Lane wrote: > Also, I came across some coding in CloneFkReferencing() that looks fishy > as hell: that function imagines that it can delete an existing trigger > with nothing more than a summary CatalogTupleDelete(). I didn't do > anything about that here, but if it's not broken, I'd like to see an > explanation why not. I added a comment complaining about the lack of > pg_depend cleanup, and there's also the question of whether we don't > need to broadcast a relcache inval for the trigger's table. Oops, this is new code in 0464fdf07f69 (Jan 21st). Unless you object, I'll study a fix for this now, to avoid letting it appear in the minor next week. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services