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 1htdl6-0002MA-Ew for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Aug 2019 20:02: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 1htdl5-0005Hd-6f for pgsql-hackers@arkaria.postgresql.org; Fri, 02 Aug 2019 20:02:35 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1htdl4-00054X-O4 for pgsql-hackers@lists.postgresql.org; Fri, 02 Aug 2019 20:02:34 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1htdl2-0007Eq-A4 for pgsql-hackers@postgresql.org; Fri, 02 Aug 2019 20:02:33 +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 x72K2KnO024689; Fri, 2 Aug 2019 16:02:20 -0400 From: Tom Lane To: Tomas Vondra cc: David Rowley , Sergei Kornilov , Andres Freund , Robert Haas , David Steele , PostgreSQL mailing lists , Alvaro Herrera , Stephen Frost , Ildar Musin Subject: Re: using index or check in ALTER TABLE SET NOT NULL In-reply-to: <20190802195438.4vuotpz6pdq6r6jg@development> References: <20190501162021.q7r5cys6uwdb5bsp@alap3.anarazel.de> <25570.1556728681@sss.pgh.pa.us> <20481181556734692@sas2-80c42a3bfdfe.qloud-c.yandex.net> <19795.1556759294@sss.pgh.pa.us> <10303161560180908@sas1-fb8a605c4548.qloud-c.yandex.net> <20190802195438.4vuotpz6pdq6r6jg@development> Comments: In-reply-to Tomas Vondra message dated "Fri, 02 Aug 2019 21:54:38 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <24687.1564776140.1@sss.pgh.pa.us> Date: Fri, 02 Aug 2019 16:02:20 -0400 Message-ID: <24688.1564776140@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tomas Vondra writes: > I think there's a consensus to change INFO to DEBUG1 in pg12, and then > maybe imlpement something like VERBOSE mode in the future. Objections? ISTM the consensus is "we'd rather reduce the verbosity, but we don't want to give up test coverage". So what's blocking this is lack of a patch to show that there's another way to verify what code path was taken. > As for the reduction of test coverage, can't we deduce whether a > constraint was used from data in pg_stats or something like that? Not sure how exactly ... and we've already learned that pg_stats isn't too reliable. regards, tom lane