Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIiyJ-0005xs-Qc for pgsql-bugs@arkaria.postgresql.org; Fri, 02 Nov 2018 23:35:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gIiyH-0002yn-Hm for pgsql-bugs@arkaria.postgresql.org; Fri, 02 Nov 2018 23:35:21 +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 1gIiyH-0002yc-Bj for pgsql-bugs@lists.postgresql.org; Fri, 02 Nov 2018 23:35:21 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIiyE-0005zz-It for pgsql-bugs@lists.postgresql.org; Fri, 02 Nov 2018 23:35:20 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 824CE21B6B; Fri, 2 Nov 2018 19:35:17 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 02 Nov 2018 19:35:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=g3ggUHw6e77qYWdBZyU1bFvtpFL yvg7oPd5bfygY4U4=; b=cUITVc+GxEGjoga46rIAAoDojtYa5DTaJty9ps3tAPs AZVWr+OpKvuJAkjupChjGJx/18ErnTvf+y6vhFM1dnExcxvavYrRDSPqBs1M0Wab 6+c0+OfPPjFdRPG1WLW7z5QHzDxmYhval/vcDE3Ke0wgMKT8rTUtOInbN2JqloKE b8bSwvjnrb98rAwRq8uQP4x2EvBl7kq8OgHjU6qT9ZcXag8FAc11ejlvV4pJYVzF iew83CzaQB5uq7Nnu19P9+tXOPgIAw/BVx6nRFiFMGp4pLV3n0kJ0QyvdZ8JliDX Vrwm/DVVPBkjlI71LonwIesJ2uh1gKuCuWzNiL5LhCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=g3ggUH w6e77qYWdBZyU1bFvtpFLyvg7oPd5bfygY4U4=; b=Mvv51KWFqHZ33GFrk0p1lW sI3qzlyll8/ZMSHP8AK74cMHb1LHVvbz+ySSj04KNig5ygy+bqEHrHGDal3yPBk6 kioaKlXtLUI+q8PXnlZfxhkPi+rCznuc8v7vD4zrAMcmJ6jT1PR8pj8+/ViAPfWr wBJOXOaHX84HbnLiUsVOu1KMAi/dTLYRTZiVrF2OnhW3+loOCMg4/u+tHyRXQOzq qA2Gxo5VrVD4TLZRI4NqGoiT7TM52IFUrLqp9PYG+4TWMSlOmbN50/TOKE/bJojW cfSOTG+L8/NUH/IefH/jR3ERGBTaS8GNfoziwZGR3XS3S7W45bvhOU+n+YUHR6nQ == X-ME-Sender: X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 92BD5102DD; Fri, 2 Nov 2018 19:35:15 -0400 (EDT) Date: Sat, 3 Nov 2018 08:35:12 +0900 From: Michael Paquier To: Alistair Johnson Cc: pgsql-bugs@lists.postgresql.org Subject: Re: Unable to copy large (>2GB) files using PostgreSQL 11 (Windows) Message-ID: <20181102233512.GD1899@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="C1iGAkRnbeBonpVg" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --C1iGAkRnbeBonpVg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Nov 02, 2018 at 02:46:44PM -0400, Alistair Johnson wrote: > I believe the issue is related to `stat` not handling large files properly. > I installed PostgreSQL 10.5 Windows x86-64 from the EDB website, attempted > to reproduce, and *could not* reproduce the error, so I think this is a > PostgreSQL 11 specific bug. You would be interested in this thread then: https://www.postgresql.org/message-id/1803D792815FC24D871C00D17AE95905CF5099@g01jpexmbkw24 Windows portability problems with stat() makes this problem way harder than it looks at first glance, because it also uses a "stat" structure which is not able to store the size of files larger than 2GB. I tried a couple of solutions for that, but gave up because of how things got easily dirty. I don't think that we want to replace the "stat" structure used all over the code for a "pg_stat" equivalent either, many folks rely on the system definitions for many patches, so that would be most likely forgotten and lead to extra bugs on Windows :( If somebody is smart enough to design a patch for that one, please feel free to send one.. -- Michael --C1iGAkRnbeBonpVg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlvc3zAACgkQnvQgOdby QH1IKA//YLIgSkgIB4rbi0ZMbVD9fdr67145Hgr1QszrRfuP8a1V4+7qOc5JWMHa GQVEPiJEa3Y34uIEKLTtxPWHRuqarDbugRQL1ZzkjtWPwfvemWE74wmcm5ySPpsU np3DojAgZ9SDzPis4EOSlrWTHgn2g618yGW8hg4KFSOuPZ59n4wHzOaxdb4n9j5B l0NfnLo2H/y5+As0UH9WGgxhmO8WOMcWc1agBhnm2hrjnMZm6CzWeWsbFH1ZzmvN t9Nui1dfW8NCft/79dQbo3nGRwQrQTChzjxDfHLQNrOG9JUWM2/XfbkMp2aBdTXG RM3Y7Uvkv2ULS/qCxLJV01CFRPzN/kIZV8CRv3keoeE1Xi/3j57dJxXYEZe1D2v0 EuI5OVPtoNPeQtMgDPD9KoEel07I0+LnWrRBNzAGYntnxhU3xx/LBYrsQ2/gcStv emydGNzUhytMBkSXQsijvdQulF9QDZB1cYzMIw20q6SQBoB1+jOrHLP2XssrwlSn F8QXjqe9aqoNB4L9kB8FNOSDkdNKW6t9CpwBMYg0NoH190TXkXhL2ruYcUTWe142 F2X6zEv+6UDys59MgDXQsJq/6ikeA9T8p2qweRK/ABj1HMgfWHYNRUqKrOj3ptIA fZzlNjKAXckJnOTxgjpp91dW/a2fMjH1B8Zwx91MiUedEeBDcrM= =rOKF -----END PGP SIGNATURE----- --C1iGAkRnbeBonpVg--