Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oE1of-0008OS-LW for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Jul 2022 05:00:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oE1oe-0000er-3b for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Jul 2022 05:00:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oE1od-0000eV-R2 for pgsql-hackers@lists.postgresql.org; Wed, 20 Jul 2022 05:00:07 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oE1ob-0000h2-H7 for pgsql-hackers@lists.postgresql.org; Wed, 20 Jul 2022 05:00:07 +0000 Received: from [10.6.216.52] (unknown [203.180.48.65]) by oss.nttdata.com (Postfix) with ESMTPSA id CDBD360891; Wed, 20 Jul 2022 14:00:00 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.6 at oss.nttdata.com Message-ID: Date: Wed, 20 Jul 2022 14:00:00 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: Backup command and functions can cause assertion failure and segmentation fault Content-Language: en-US To: Michael Paquier Cc: Robert Haas , Masahiko Sawada , PostgreSQL Hackers References: <3374718f-9fbf-a950-6d66-d973e027f44c@oss.nttdata.com> <6a759108-a02c-34fd-856c-d7c09d29d2ba@oss.nttdata.com> <02347f81-304f-3a14-1a33-5f40dfd7da48@oss.nttdata.com> From: Fujii Masao In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022/07/16 11:36, Michael Paquier wrote: > I was thinking about doing that only on HEAD. One thing interesting > about this patch is that it can also be used as a point of reference > for other future things. Ok, here are review comments: +my $connstr = + $node->connstr('postgres') . " replication=database dbname=postgres"; Since the result of connstr() includes "dbname=postgres", you don't need to add "dbname=postgres" again. +# The psql command should fail on pg_stop_backup(). Typo: s/pg_stop_backup/pg_stop_backup I reported two trouble cases; they are the cases where BASE_BACKUP is canceled and terminated, respectively. But you added the test only for one of them. Is this intentional? >> Since one of them failed to be applied to v14 or before cleanly, I >> also created the patch for those back branches. So I attached three >> patches. > > Fine by me. I pushed these bugfix patches at first. Thanks! Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION