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 1gZJm4-0008Cb-RG for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Dec 2018 18:07:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gZJm3-0007rM-7d for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Dec 2018 18:07:19 +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 1gZJm3-0007rF-0U for pgsql-hackers@lists.postgresql.org; Tue, 18 Dec 2018 18:07:19 +0000 Received: from mail-qt1-x841.google.com ([2607:f8b0:4864:20::841]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gZJlv-0000N2-VT for pgsql-hackers@postgresql.org; Tue, 18 Dec 2018 18:07:18 +0000 Received: by mail-qt1-x841.google.com with SMTP id t33so16479480qtt.4 for ; Tue, 18 Dec 2018 10:07:11 -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=Yxme/bTmIxcQsKVqtj3V7SiptqUGK3NMaaL1GfVZS20=; b=mq5J6qQkXH2hWVVow89ejPoMwMIvnIcuRXff8UV+5pbUFvPrHABgXXhqR9/nrvTWQK SCAgqpXRCVUGLRHjxc6LaCMDwuAIqmH/gwhijpX0ML6FgcOCft2ywcEDjwuRadhKSt71 ZnMYAUWntxHEFRzqK1t1Dz2HlK7t1GapPkeNcPUFjPVtMHMfbPIExqDCXMcBbtapNr5u IX7fpkOSbPCofKx6gxy8qGeWzQdc3Aj4b2rLm6qHNDUuFS9kSW8Tf+YY1hQXCvZ1bbL7 oHHoDNCkfHZI+ypAhlUfJsdWl+ekVvSa8JEqgpFpPD/6r2CYzttZDZJva3y9Mnvlz90k Cm1A== 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=Yxme/bTmIxcQsKVqtj3V7SiptqUGK3NMaaL1GfVZS20=; b=S9+s0sMe5DGlionCM3cVWa7KIr1tdhaabmtVsoaznsXOq/TiBLy4rn0m6sbboAQnBs 0/pLxYXlnLRRiN38hEy3F0Ez673nKfh7yG7Rq85ZsFzvGpeu5lwdX/VAizJY53GhsBB9 uEJ/Wut/9HMftg1PD4LuDkTw1gZTSuzzO1+uMkLgCLOYH7qV10qA8SI9JluLScQ00vA2 jscVK6HKqNBXkADARZotIoXdMA+fbvFcPsnWiGbT9aDHpsEjd+UcEmvMm2SZQfPrhGJn rZZvl6KfxSwRbXFTeuJM0QS4sZVv5CBH73GNqv2DLcBWyyYjVgkwl1i3qT4BDHqBp3em sSMw== X-Gm-Message-State: AA+aEWZi+LS8WlVSHy67GnF6bIB30U9r6FTjAALdyHqofZQ652arpj9M Z7gmhmVEx5K+/SNMgR0cKfXxVQ15Yh2W8g== X-Google-Smtp-Source: AFSGD/Xyq3v/DU/LBRZkmUp9QCJX6C6vrFcdC8GQCeSvCVHppmEDCec/yBQYA8ITpmoCu428fzogWw== X-Received: by 2002:aed:3c0c:: with SMTP id t12mr18879768qte.226.1545156430397; Tue, 18 Dec 2018 10:07:10 -0800 (PST) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id y12sm530653qta.13.2018.12.18.10.07.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Dec 2018 10:07:09 -0800 (PST) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 812867E4; Tue, 18 Dec 2018 15:07:07 -0300 (-03) Date: Tue, 18 Dec 2018 15:07:07 -0300 From: Alvaro Herrera To: Peter Geoghegan Cc: PostgreSQL Hackers Subject: Re: Fixing findDependentObjects()'s dependency on scan order (regressions in DROP diagnostic messages) Message-ID: <20181218180707.id4chuplqoqzypwe@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-05, Peter Geoghegan wrote: > I've realized that my patch to make nbtree keys unique by treating > heap TID as a tie-breaker attribute must use ASC ordering, for reasons > that I won't go into here. Now that I'm not using DESC ordering, there > are changes to a small number of DROP...CASCADE messages that leave > users with something much less useful than what they'll see today -- > see attached patch for full details. Some of these problematic cases > involve partitioning: Is there any case of this that doesn't involve DEPENDENCY_INTERNAL_AUTO entries? I wonder if I just haven't broken the algorithm when introducing that, and I worry that we're adding a complicated kludge to paper over that problem. Maybe instead of the depcreate contortions we need to adjust the algorithm to deal with INTERNAL_AUTO objects in a different way. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services