Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fV9m3-0000Lq-Sv for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Jun 2018 06:05:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fV9m2-0005my-7c for pgsql-bugs@arkaria.postgresql.org; Tue, 19 Jun 2018 06:05:50 +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.89) (envelope-from ) id 1fV9m2-0005mo-0n for pgsql-bugs@lists.postgresql.org; Tue, 19 Jun 2018 06:05:50 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fV9lz-0000zg-Dn for pgsql-bugs@lists.postgresql.org; Tue, 19 Jun 2018 06:05:49 +0000 Received: from [192.168.127.1] (port=16404 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1fV9lw-00060X-GO; Tue, 19 Jun 2018 06:05:44 +0000 Received: from [127.0.0.1] (port=38369 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1fV9lv-000BFo-Pt; Tue, 19 Jun 2018 06:05:43 +0000 From: Andrew Gierth To: pgsql-bugs@lists.postgresql.org, liguangxian1995@gmail.com Subject: Re: BUG #15247: At 'ALTER TABLE ADD COLUMN fast default' , Set attmissingval to NULL in the pg_attribute, query fail In-Reply-To: <152938199549.1445.15943776243848338882@wrigleys.postgresql.org> (PG Bug reporting form's message of "Tue, 19 Jun 2018 04:19:55 +0000") Message-ID: <87d0wnqta9.fsf@news-spur.riddles.org.uk> References: <152938199549.1445.15943776243848338882@wrigleys.postgresql.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Tue, 19 Jun 2018 07:05:43 +0100 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "PG" == PG Bug reporting form writes: PG> (4) update pg_attribute set attmissingval = NULL where attname = 'b'; Nobody ever claimed that you could update pg_attribute without crashing the server; I can think of half a dozen ways to do it. -- Andrew (irc:RhodiumToad)