Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcb5m-0001QU-6X for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Aug 2017 17:36:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dcb5l-0004qJ-Ky for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Aug 2017 17:36:25 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dcb4E-00021I-UG for pgsql-hackers@postgreSQL.org; Tue, 01 Aug 2017 17:34:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dcb4B-0002Bz-1f for pgsql-hackers@postgreSQL.org; Tue, 01 Aug 2017 17:34:50 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v71HYjPl010767 for ; Tue, 1 Aug 2017 13:34:45 -0400 From: Tom Lane To: pgsql-hackers@postgreSQL.org Subject: Better way to handle suppression of CASCADE detail messages MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10765.1501608885.1@sss.pgh.pa.us> Date: Tue, 01 Aug 2017 13:34:45 -0400 Message-ID: <10766.1501608885@sss.pgh.pa.us> 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 In various places in the regression tests, we want to suppress DROP CASCADE's detail messages because of the fact that they don't always come out in the same order. I noticed that some places deal with that by adjusting client_min_messages while others use "\set VERBOSITY terse". I think that the latter approach is superior, because with it you still get to see the basic notice message, something like NOTICE: drop cascades to 17 other objects In this way, the test at least verifies that the expected number of objects get dropped, even if we aren't checking their precise identities. So, barring objection, I'm going to run around and change all the tests that use client_min_messages for this purpose to use VERBOSITY instead. BTW, in the long run maybe we should instead make the CASCADE message ordering more predictable, perhaps by sorting the objects by OID. But that's not a job for beta time. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers