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 1gyPup-0005W0-1Z for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Feb 2019 23:44:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gyPun-0003dY-IX for pgsql-bugs@arkaria.postgresql.org; Mon, 25 Feb 2019 23:44:05 +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 1gyPum-0003dR-Mx for pgsql-bugs@lists.postgresql.org; Mon, 25 Feb 2019 23:44:05 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gyPui-00069I-Fa for pgsql-bugs@lists.postgresql.org; Mon, 25 Feb 2019 23:44:04 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id BB20E221F7; Mon, 25 Feb 2019 18:43:57 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 25 Feb 2019 18:43:57 -0500 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=fm1; bh=kvIxIZ0cQVCOAxZgfOLTKwvnNNo 4D94MYOc5A9SEseI=; b=epD8uKAFByMXJB/zlyDuk77ldP3apkLH26nrVos0HKW OiU805LOIzwGYHMrPhV1qkYDmO6nIprNBxp3r9B23Cnb1w7oTCERDkmB/2Aj5zA5 r/K2uPl46uJ5vMKCywpGEg/AAZshD7dQreWH2tfpzxS4Ae1AaNi9ZDU7ODAcv7kT mMinks4TwylWl1OH4uTUuYX9ovLEUpgGzCGqjm6+jF930AVxgTOwQ9lKmUhGz2Hi E43tZ3uafArHCwwAeviqQJXErxCcHhZdi5OROCDETzp4YZGtjq+JwefeTsp5cmGx GINZpG+/MZ5piW1Jx2kwbRx2ukSVAwkPrtwtch6JG8w== 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=fm2; bh=kvIxIZ 0cQVCOAxZgfOLTKwvnNNo4D94MYOc5A9SEseI=; b=ccRNWxSDclcgSicHkYBeR3 WiIGWZprZEzfSQSGpprf3khQZjI1GRR07Lc61JtBaV5jhh34kom6/cwuHEImmRFH Oh5Ki+NQkWP8U1PeWSyPpmu/nHKM6ALeyEEveFJlk3hgwLF6yREU86ldBAQ9zoOq MCh55Mn+2w9u23bah3Gl19JcHQ7O5O0uBscQA0lsV1GBkaG5A6oILTWBg2DgYPcn E2jF1KNUKls/iSesE58+fQvZfIeg9hZZEXjlU6IAlKQt5+TV/uHsm55YiRI3B9AD IR1/X0xen6h2mpz6+EW3bzX0rhnPh2xvSbx+GaUQ7igTFSRyO46Q02DerTRhtkRg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrudekgdduvdculddtuddrgedtledrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdlfeehmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecu kfhppeeiuddrvdduhedrudefjedrudeivdenucfrrghrrghmpehmrghilhhfrhhomhepmh hitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 7738A10312; Mon, 25 Feb 2019 18:43:55 -0500 (EST) Date: Tue, 26 Feb 2019 08:43:52 +0900 From: Michael Paquier To: David Rowley Cc: sandeep.t.kumar@gmail.com, PostgreSQL mailing lists Subject: Re: BUG #15654: COPY command not working for 2gb CSV files Message-ID: <20190225234352.GH30864@paquier.xyz> References: <15654-bd233aae1c150270@postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nEsDIrWrg+hrB7l1" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --nEsDIrWrg+hrB7l1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Feb 26, 2019 at 03:42:40AM +1300, David Rowley wrote: > Seems to work if I change the fstat() call to _fstati64() and change > the type of st to struct _stat64. Perhaps we need to wrap some macros > around these in port and have windows use the 64-bit versions. It is a bit more complicated than it sounds as stat() is already a macro in the Windows port. Please see here: https://www.postgresql.org/message-id/flat/df939c6f-2866-48b8-b3fe-5cbb54576a53%40manitou-mail.org https://www.postgresql.org/message-id/1803D792815FC24D871C00D17AE95905CF5099@g01jpexmbkw24 -- Michael --nEsDIrWrg+hrB7l1 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlx0fbgACgkQnvQgOdby QH1suQ/+MYbU1fnBfGzPNeejR0U5OWP1UhojhrAOyCOWwWn+OupsZd9JPRlfc2B/ cn1TPzth6PiL9WKBMlDWl1qsuqVFAuxEFrB2KQVVyxaJTILBdjlXa/qYrD7sXw9Q Y+RX/DSrk8Zbywx0p7ISR3U+aJuoiE0VAqgS7k0EWvKKZtCPykQ88yiUQEO6Nbtp 3EynziN/304WhVgUkxNzdJNr4lQHVOg7eCf82MUQvTVB7MOj6gQaTTwl7KAZ5Rn9 l00d9YWtIG2SuFPSbNqZxEGYpK6ystFj1+EI+9abOL+HqeJ7xImsHWXLK0J7hb9G BApir1P93Pz4QXQ4spL3k5urA6yqI2cSM/fts3ZXOIIe8HwhFp4AqbJ0lAZqZjUz s/xdJbFiFMWKih3UvBjlkNEsMsDfUu9m2oi9KGRuAUnM4XZLyj2cu4KEc15PTBYV vbmg2vYwOno6uIyX1yqlfuUJ+pvGeGUth/812snCM6cccdN7+O7LnyIWOuYOznki 6A9ebHZlXFilvnwzXv4yHGQtdXRGmH0p1SbKCMIL3LskjEVBS3gWBLk7xjz6TQj4 XqKysmYDrVL60oXolYpbhY3nxkfkxBxBUQsTRH5v4YQOcHGWDqgfJEwlkTcySMXb ebFcq2Z8ljW80YIryRQYJYTAyhnr4DSQO7ORituuYMcTHzyYvKo= =Smz4 -----END PGP SIGNATURE----- --nEsDIrWrg+hrB7l1--