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 1gkfzy-00031Z-HQ for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Jan 2019 02:04:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gkfzx-0008Aq-8W for pgsql-hackers@arkaria.postgresql.org; Sat, 19 Jan 2019 02:04:37 +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 1gkfwk-0008T0-P5 for pgsql-hackers@lists.postgresql.org; Sat, 19 Jan 2019 02:01:18 +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 1gkfwg-0001Zd-UX for pgsql-hackers@postgresql.org; Sat, 19 Jan 2019 02:01:18 +0000 Received: by mail-qt1-x844.google.com with SMTP id l12so17357619qtf.8 for ; Fri, 18 Jan 2019 18:01:14 -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=7nfI4xTq0Ti8EboVsaSAvuVU7qU/zk1d6U+EOr+VYkY=; b=KWQJ1q9lxF5yYCCzpxmJ6Qy+Vpn6S74S3CTboJCI10zfEXuduBEaBg6WnmDuxWZHDB gfqGabm5DaJd4ph7lAz7R9Mo3XUD1mqrypIrCfKuT1D/bozfYxDjhIrfoGYMLllz9h/n PtwxFIvDcVK6+K0m46MhBWGy+4Ar0nObqQZjsSuYT6HyvS+7gONw6qX2AEaVjHKd48rP fjDqb70mU61vNeAfm0fQDXNnQP7OA/+nIoKwe5DQZsgROKkp7XKmioVNiMpT0vDqbPfx 1Y382qYcPfXLJPttJJw+aSv4oRWDQQYPM+nqeVutrKRS2A5d9VBjKK890c9u9j7ztbet yWwg== 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=7nfI4xTq0Ti8EboVsaSAvuVU7qU/zk1d6U+EOr+VYkY=; b=Wf8Q76c4S6Gai30CS6tJFW0WaZNk5hNec67KsbMKpt4Nl9drXlft5Cpl9WSJUOBY3v QNZPABG0fbdLvXr4N6J0qFlVpJffRx1hI677p6KuQB/3/xg8zSJqWr/JN95Aw2l4Uh96 /dJChvezMuZsUscQpedr9JPWFbcYb6C5nJXfwqNG5PkeTMhBbBMecvsDgOT+iMMFRSNj Y2wNz8PA8SFHt3GpIR8rjEu4jdLRfTfCkKpk6MUX3jFM0Fa9gjuetHxg1AA0cwyn5fJJ DUOiDGlgTIdwHHXzz0fCHc8uzwih1FK58Lpae/xNN2rgmn1Kjtd9DbHmo/aFLci/h0M8 lLww== X-Gm-Message-State: AJcUukfgrnAcks5nuJ45w40rtFcdTd0BNWY3yHFxlocwah9MIh8HG3jX Hv5OtQDR64TOAkRA+U9sfdHG8XcFuWA= X-Google-Smtp-Source: ALg8bN5qPFt2cUPBdljW2YsUKI1iiS6t4ii+vhcNPh4i1VxKBzm6+Oh64UXBgI5RPm4Z4TdTwsoUvQ== X-Received: by 2002:aed:2217:: with SMTP id n23mr17821790qtc.288.1547863273166; Fri, 18 Jan 2019 18:01:13 -0800 (PST) Received: from alvin.alvh.no-ip.org ([201.186.80.67]) by smtp.gmail.com with ESMTPSA id m68sm50519517qte.49.2019.01.18.18.01.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Jan 2019 18:01:11 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 161A795C; Fri, 18 Jan 2019 23:01:09 -0300 (-03) Date: Fri, 18 Jan 2019 23:01:09 -0300 From: Alvaro Herrera To: Peter Geoghegan Cc: Tom Lane , PostgreSQL Hackers Subject: Re: Fixing findDependentObjects()'s dependency on scan order (regressions in DROP diagnostic messages) Message-ID: <201901190201.fmtf2fdn2rec@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-1013-2c1e88 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-Jan-18, Peter Geoghegan wrote: > On Fri, Jan 18, 2019 at 3:34 PM Tom Lane wrote: > > * There is still instability in which object you get told to drop > > when attempting to drop an index partition or trigger, as a consequence > > of there being two possible DEPENDENCY_INTERNAL_AUTO targets. I still > > feel that the right fix there involves changing the design for what > > dependency types we store, but I've not worked on it yet. > > I thought that your ALTER OBJECT DEPENDS ON EXTENSION example made the > case for fixing that directly inarguable. I'm slightly surprised that > you're not fully convinced of this already. Have I missed some > subtlety? I agree that it needs fixed, but I don't think we know what to change it *to*. The suggestion to use one AUTO and one INTERNAL seems to me to break some use cases. Maybe one INTERNAL and one INTERNAL_AUTO works well, not sure. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services