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 1fVTcX-0005b1-Q4 for pgsql-general@arkaria.postgresql.org; Wed, 20 Jun 2018 03:17:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fVTcU-00063G-OB for pgsql-general@arkaria.postgresql.org; Wed, 20 Jun 2018 03:17:18 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVTcU-000637-D4 for pgsql-general@lists.postgresql.org; Wed, 20 Jun 2018 03:17:18 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVTcR-0003w8-IU for pgsql-general@lists.postgresql.org; Wed, 20 Jun 2018 03:17:17 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 97CF321B14; Tue, 19 Jun 2018 23:17:14 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 19 Jun 2018 23:17:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=biJi/loTnvg0cW8Zp2wg2swT7FI+Z9DA7dWr5vL4I3Y=; b=WSx1lMIJ Yc0W81PfqoxxxyNgyxvv9wYiSYhoWSTvhuRQL11L7/P8/A5DOTEhD/ua6fal7tTD a0Qw/wtPBEDjRIkWNeGnSCqwenG6GDzF/VIu9o5rqXnvykqE4vu3m8rNuRtQaVot WeBQ44yJG5vfY+IWEb29t28pSssdITQOSy+7wE62ksakuPuh+snFH5B3MlIfzmeC x/6ZpviZL95Emh24RvEg6UI9R094z0ZkhoqmZNfvxmToNLs9iHYPhvSO216V8pMD HLa8aZ+TFFw35U6Bha3/D0Wi1EUjDBKUmKCvlTGZQkz3nVY9SDCWwBPSYvVwOJCU YCQMkQ5T9g41og== 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-sender :x-me-sender:x-sasl-enc; s=fm3; bh=biJi/loTnvg0cW8Zp2wg2swT7FI+Z 9DA7dWr5vL4I3Y=; b=Hq5SkUen8zybh1q6rFsAwCYdcK63iorXbv3VO8ZUheM7v aBSd5e0qQ4+2S69P/HR6W1SYbQ4h3VHog1iOl5X83xqh4oxLBR2HhHStKBL8UhUl 1BTf+KIJB6WBh6bjE3jqACEW1MOYwFlNrTJkLA++znflZ/yrXipi2T0gilqgJVH+ bZRjykrEr2is4b2PX5K8RTD1schiHoZEpGQP49je2O1lasZnt63sb3TC7um1BtCR ZQjexbiHQqASuVONoSeZlCBqydfCt0xWcacuTr9H/f27JHmgs9IwqE6FBzO7Ysws qyTFnuOEpcV9IWqh0K7YPt363T6YLVJNx5f9KrQww== X-ME-Proxy: X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 91D5D1025C; Tue, 19 Jun 2018 23:17:12 -0400 (EDT) Date: Wed, 20 Jun 2018 12:17:09 +0900 From: Michael Paquier To: "David G. Johnston" Cc: Ravi Krishna , Alban Hertroys , PG mailing List Subject: Re: Load data from a csv file without using COPY Message-ID: <20180620031709.GF20245@paquier.xyz> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TeJTyD9hb8KJN2Jy" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --TeJTyD9hb8KJN2Jy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jun 19, 2018 at 02:32:10PM -0700, David G. Johnston wrote: > =E2=80=8BYou really need to describe what you consider to be a "real life= =E2=80=8B > scenario"; and probably give a better idea of creation and number of these > csv files. In addition to describing the relevant behavior of the > application you are testing. >=20 > If you want maximum realism you should probably write integration tests f= or > your application and then execute those at high volume. >=20 > Or at minimum give an example of the output you would want from this > unknown program... Hard to say what you are especially looking for that psql's \copy cannot do, but perhaps you have an interest in pg_bulkload? Here is a link to the project: https://github.com/ossc-db/pg_bulkload/ It has a couple of fancy features as well, like preventing failures of rows if loading a large file, etc. -- Michael --TeJTyD9hb8KJN2Jy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlspxzUACgkQnvQgOdby QH2FHA//UqcYCzF12wPEQIoIBfXVfQSD05tR3iZnNnmC1FbG8BZ47rnAMESfOckU KgUKo+7QocIWfPmUip0ucCD9n0QhZFebPV+oHSmAEYAcVxaEXNsrUr7/kmmZvcx2 fXTakOO8ejvjbroxDj2udsTReovglqZp5jhM4qQc9ow3L9pK9hS1XJlys3erfTD6 DotBLzxaNO53MzAIAqMM/bukCL9G8QKe89qyGvo5HMRUi4VS0S2KAjeiFjvWuVVH I2ho8gbcTVBookV8P3mwbwFvcjnhuOH2nju9WRWFo4wrMgd8U4k/fap3zPFGr0G/ +EGcDdk/rYkCHxOe5lFb14yMByrxjcK5cfO86WG6iDNAcCBKTSLi4pP4cAt295Fy RE+dnCKLKFK5qHtAjq6ns2ALdKJxuxtqI5JX1hARR2r6FGn2v8RMEKY3D+nT5VwQ tpTAHlRhgBg6u52G8V6H4L5BqwZwrOmfPuzjE+YSqJsi8qdPOHdNbMMKPyPRV2TG A7LoVVta4xcZlssfj5qgiLxNTIRMKGoIQkGF6iAdAmKURmdwiHKUF5rGBk2CQx5N IrAx3UyAUauvSTTLAJivGjbObUYKrwn+CwZ1ZC3W4s44bxi9Q3uYynSoE7h76zAX W8kyT4xkk0Tus0GKiNbTadDoYgHMKYUr8rrdbllq7KyEhv79zaI= =Yz/h -----END PGP SIGNATURE----- --TeJTyD9hb8KJN2Jy--