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 1hLsFQ-00024O-6A for pgsql-hackers@arkaria.postgresql.org; Wed, 01 May 2019 16:38: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 1hLsFN-0007YD-RK for pgsql-hackers@arkaria.postgresql.org; Wed, 01 May 2019 16:38:17 +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 1hLsFN-0007Mm-IA for pgsql-hackers@lists.postgresql.org; Wed, 01 May 2019 16:38:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hLsFK-0002l0-C6 for pgsql-hackers@postgresql.org; Wed, 01 May 2019 16:38:16 +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 x41Gc1XL025571; Wed, 1 May 2019 12:38:01 -0400 From: Tom Lane To: Andres Freund cc: Robert Haas , David Steele , David Rowley , Sergei Kornilov , PostgreSQL mailing lists , Alvaro Herrera , Stephen Frost , Ildar Musin Subject: Re: using index or check in ALTER TABLE SET NOT NULL In-reply-to: <20190501162021.q7r5cys6uwdb5bsp@alap3.anarazel.de> References: <694691552422467@myt1-06117f29c1ea.qloud-c.yandex.net> <21516.1552489217@sss.pgh.pa.us> <2815991552495610@myt1-4903e6646a45.qloud-c.yandex.net> <7254.1552496972@sss.pgh.pa.us> <20190501162021.q7r5cys6uwdb5bsp@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 01 May 2019 09:20:21 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25569.1556728681.1@sss.pgh.pa.us> Date: Wed, 01 May 2019 12:38:01 -0400 Message-ID: <25570.1556728681@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > There's still an open item "Debate INFO messages in ATTACH PARTITION and > SET NOT NULL" for this thread. Is there anything further to be done? Or > are we content with this for v12? IIRC, that's based on my complaint that these messages have no business being INFO level. I'm definitely not content with the current state. I proposed that we didn't need those messages at all, which Robert pushed back on, but I'd be willing to compromise by reducing them to NOTICE or DEBUG level. The actually intended use of INFO level is to mark messages that the user actively asked for (via VERBOSE or some morally-equivalent option), which is why that level has such high priority. If we had something like a VERBOSE option for ALTER TABLE, it'd make plenty of sense to follow VACUUM's precedent: if (params->options & VACOPT_VERBOSE) elevel = INFO; else elevel = DEBUG2; It seems a bit late to be inventing such a thing for v12 though. In the meantime, I'm not very content with random subsets of ALTER TABLE acting as if they have been granted permission to be VERBOSE. It's unfriendly, and it's inconsistent because there are so many other expensive ALTER TABLE actions that don't do this. regards, tom lane