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 1lBx8X-0004WI-6h for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Feb 2021 09:59:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lBx8W-0002py-4I for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Feb 2021 09:59:16 +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 1lBubM-0005En-NK for pgsql-bugs@lists.postgresql.org; Tue, 16 Feb 2021 07:16:52 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lBubK-0006Th-8K for pgsql-bugs@lists.postgresql.org; Tue, 16 Feb 2021 07:16:52 +0000 Received: by mail-wm1-x334.google.com with SMTP id v62so3884887wmg.4 for ; Mon, 15 Feb 2021 23:16:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=G7ShcVGTtgoUD0lES2LfA+DeTVNNRTqdsSw/+D0xOto=; b=MP4jLDlqLxlAGtS1uTde2MHCofRTpfED8n/lH2PkFOydSP2jKOqF1ZU2/MK1b/3yEp OuwD8Z5IPmeB5jSAAFoAW4v8+/sLlBYWdcmvzn/WI35AP+GMTzdccJrNjnx30LE9X4bq jncaaVmziGJ8aXye2i/qhmUSAH7aROe/m2VOkPzUshYm+K+DXJbhen6AJwCHAcYt7ugz EAfRVWZn90DDNHWKvqrLUTABYuyzJLY9pt1NsHaGHMeDBVgsohR5bbn+oMXDncHFQUIJ 57Ykrv3gZiWk6KwBkRjcTus0ccOuCBqt5SUT3evm+WJgYauBUwTsAvHT1+vz5lGhPf+Z C43w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=G7ShcVGTtgoUD0lES2LfA+DeTVNNRTqdsSw/+D0xOto=; b=cO3mbhklaoDiVV2XNBXWtM4Kr/HWTG0PBbqyGxwlHKOs+3QhVRN6bJw3yQrYOkjbdC w0+Kns5UwIJ55cgMQR+ih1rdJTStFcn/nSoYjDL2aEvER4fUPw1VvYF9QBvMTxD2QUcr PMkkMCu6JTO53zdJqKNuAbXpmueO97qge3sDmBDlURq8HeVejvmqnR6fSYkt4FVj8AMu RaAn8Y4dhE6N77QX1q5d/EdpvuXlnz3ifuCYViSfqUbqQBj5krd4CljJHXnLw1ff7Wn/ QIeVxgFpmul3W9w6H0CHm9V4fx/kW30LJnWlDcMtCq7NRuzkiR4RoEiKswUelRY7sINb w6NA== X-Gm-Message-State: AOAM531MtFZd6p/NGKNXXd3mMM+JtKB7zKIs+XPRKL1lI+YVoQKH8/h1 pfbocljZk0dTCMZJXXlPWvc= X-Google-Smtp-Source: ABdhPJxNhIzdRUHAfOZAGaVExytVYiibx60mH9xo/nCIS4SYf6ePyYu2s+zFz+kZB4g6rIIcsMcUDA== X-Received: by 2002:a1c:541d:: with SMTP id i29mr1878232wmb.19.1613459809373; Mon, 15 Feb 2021 23:16:49 -0800 (PST) Received: from [10.0.0.150] ([37.186.188.48]) by smtp.gmail.com with ESMTPSA id 2sm28846511wre.24.2021.02.15.23.16.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 Feb 2021 23:16:48 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: BUG #16866: pg_basebackup Windows Server 2016 From: Ivan Salvato In-Reply-To: Date: Tue, 16 Feb 2021 08:07:21 +0100 Cc: pgsql-bugs@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <16866-623545dc62339188@postgresql.org> To: Michael Paquier X-Mailer: Apple Mail (2.3608.120.23.2.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thank you very much for your reply Best Regards Ivan > On 16 Feb 2021, at 02:00, Michael Paquier wrote: >=20 > On Mon, Feb 15, 2021 at 03:12:10PM +0000, PG Bug reporting form wrote: >> Problem: >> backup fails when the base.tar.gz achieve di 4 GB with pg_basebackup: = error: >> could not stat file >> "W:\POSTGRES\pg_backup\Base-Backup_2021-02-05_103921/base.tar.gz": = Unknown >> error. >=20 > This comes from the fact that Windows stat() is not able to handle > files larger than 4GB by design, and the fact that pg_basebackup tries > to make durable all the contents of a base backup when it is done > streaming something on the target host. I bet that the failure you > are seeing is the fsync() part for base.tar.gz. >=20 > You can bypass that by using --no-sync as option, which would > basically emulate what Postgres <=3D 9.6 is doing. In Postgres 14, = the > emulation of stat() has been fixed to handle the case of files larger > than 4GB: > = https://git.postgresql.org/gitweb/?p=3Dpostgresql.git;a=3Dcommit;h=3Dbed90= 759fcbcd72d4d06969eebab81e47326f9a2 >=20 > This is arguably a bugfix, so we may consider a backpatch in the > future, but knowing how invasive the fix is we are still in a phase > where we want to have some dust settle on this change and Windows has > its own way to do weird things all the time. IMO, It may be better to > revisit that a couple of months after 14 is released so as there is > some feedback from the field with this change. > -- > Michael