Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcdKN-0001Q5-4S for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Aug 2017 19:59:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dcdKM-0003Je-HD for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Aug 2017 19:59:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dcdKL-0003G4-KT for pgsql-hackers@postgresql.org; Tue, 01 Aug 2017 19:59:37 +0000 Received: from mail-qt0-x235.google.com ([2607:f8b0:400d:c0d::235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dcdKI-00072t-PY for pgsql-hackers@postgresql.org; Tue, 01 Aug 2017 19:59:36 +0000 Received: by mail-qt0-x235.google.com with SMTP id 16so15594037qtz.4 for ; Tue, 01 Aug 2017 12:59:34 -0700 (PDT) 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=KCi5sUUaDjF1JS68UjRWCZhhqXIQiZry+UwOoGtjtrI=; b=hP9WPL0xTSp06go3s6/b/RTG29M/28P78twcsKIfHuoiWO77OyGHjGTr6SsF7QBsE7 WlGa42mybil2GQK4sZNnOWHM4jJ2wYVLKwxhabjBmqY8/CiTUesSg7Beer9mT83dBlle C0dYkGMFNYPZ3QYin+iGb5qR3dwxr2Z1m4OEYDFqHTcie3ZI9SyTHWbk21DWXLO80Ll/ sSr8nTDQA7nofEByu+bx6mEVdJXy3/52a/DXkjZwRWDOVba8vncIu3t9FfUm6sQcmLnl t3bheGNvZA+/Npt4zjQ7oG4qA+sbX/ixSnFmzTYeP8vK0X3AmHBapviuFdX2/B7ueafe IjZg== 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=KCi5sUUaDjF1JS68UjRWCZhhqXIQiZry+UwOoGtjtrI=; b=fk/dzXuLX8RBs3SAjvwtgej6B14p+6vk+2X6cNXyiDIugRBH6tG45aEo2CpqUh+sin 2In9/P2/EqgKBOH0VyTshK3YDBSUG90IQ9qR8oerGhVA77k3hCkI4JwAqQpcC4S6l1yM +K6ULA7KQZDNhS8rCHrDg4+K+MirIKbklpopBgL6QIqcGSwdwnhtkd/9efR5GgBSFC7Q 8CQpgZOjUV42ZEMTbhHA3lhZCfcB2PwBzjkNvUjqo5euZ/vS9/6JPQySwjYuVXDiLjrG ionvxXeYpzUT2GkrADhV1MVHq9BLYRX9VbrUkPJ6H7npc7T88RsLWhdyhWT5vYIzs4fn u4hA== X-Gm-Message-State: AIVw1112zux8aBtN/9LWskQngjZXpDupwmJNljUQHp79oQkn/lDLgPE2 fo+H7ZNY2+vhanxc1Ao= X-Received: by 10.200.53.251 with SMTP id l56mr11027362qtb.82.1501617573721; Tue, 01 Aug 2017 12:59:33 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([179.57.115.10]) by smtp.gmail.com with ESMTPSA id 13sm22569723qkd.70.2017.08.01.12.59.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 Aug 2017 12:59:33 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 89C2611ED; Tue, 1 Aug 2017 15:59:30 -0400 (-04) Date: Tue, 1 Aug 2017 15:59:30 -0400 From: Alvaro Herrera To: Andres Freund Cc: Robert Haas , Tom Lane , "pgsql-hackers@postgresql.org" Subject: Re: Better way to handle suppression of CASCADE detail messages Message-ID: <20170801195930.nl2xiksigvggvfwp@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20170801182328.ei4brmyxeemcsqzs@alap3.anarazel.de> User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Andres Freund wrote: > On 2017-08-01 13:48:34 -0400, Robert Haas wrote: > > On Tue, Aug 1, 2017 at 1:39 PM, Andres Freund wrote: > > > Oid is probably not good enough - with parallel tests and such it's not > > > necessarily predicable. Even less so when the tests are run against an > > > existing cluster. Sorting by name would probably be better... > > > > It's arguably more user-friendly, too, although part of me feels like > > it would be better to try to preserve the topological ordering in some > > way. If something cascades to foo and from there to bar and from > > there to baz to and from there to quux, emitting the messages as > > > > drop cascades to bar > > drop cascades to baz > > drop cascades to foo > > drop cascades to quux > > > > is arguably not going to be too helpful to the user in understanding > > the chain of events, however nice it may be for regression testing > > purposes. > > I'm not sure that's going to easily be better - won't the oid order in > turn determine the topological order. Which then again isn't very easy > to understand for users. I'm not sure I buy the idea of ordering by name. Not all objects are going to be of the same type, so ordering by name is going to look strange. OID order would only have a problem if you run the tests just before OID wraparound, and the counter wraps in the middle of the test. To me that seems a fringe enough situation that we shouldn't worry about it ... in a freshly initdb'd cluster it will never behave strangely. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers