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 1fVO6t-0007Ov-5d for pgsql-general@arkaria.postgresql.org; Tue, 19 Jun 2018 21:24:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fVO6r-00029Z-RP for pgsql-general@arkaria.postgresql.org; Tue, 19 Jun 2018 21:24:17 +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 1fVO6r-00029Q-HG for pgsql-general@lists.postgresql.org; Tue, 19 Jun 2018 21:24:17 +0000 Received: from mail-pf0-x231.google.com ([2607:f8b0:400e:c00::231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fVO6o-0005Sx-F6 for pgsql-general@lists.postgresql.org; Tue, 19 Jun 2018 21:24:17 +0000 Received: by mail-pf0-x231.google.com with SMTP id a63-v6so487318pfl.1 for ; Tue, 19 Jun 2018 14:24:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=sTajyDp2Nvy1Nk5xWbsxpCkZ2uEJZLIzt2fwpYblwWg=; b=bdkHFXfaC0eQOcuQD21ZBju+SBvvh7B5EZznZ8ev5vRO2tewmpmQd63rWXfn38W9F4 Vmewa5u5WksAyLO4zor2q0NAiK1uvcQM7ImNDbZh7Ww2iTtXjf92V3BpGV2vYlCM6A0I YaDm9dblc81i+j4mvQOCrYz2syHvpMABeDtPGo68xr8CT5hEe3oQsug9dClYPjWS9Pfw IIl1v1DAuiSSjn9GN+FDFBaFMMwr3gq9QzpVdrtvToadt5xnSRM9FjVf2teZNsaJMb1u 4grLdtDUQwEk5qCoIje/SKum6fVvcBd2sbMk7JvPIFbKRpAoPvcIUseqLHirIICFW+Cf WlDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=sTajyDp2Nvy1Nk5xWbsxpCkZ2uEJZLIzt2fwpYblwWg=; b=heV3pj8bPMtg45EPQXPMVnmL3NpJOnjKY2Jv8v0qV8So042TvJagg1CsXWtuldMj3S bJgh481eG+HX0l2p4m5EWNo+QpWPJB4gTgYc3E0ipq2idA8VhaUqwoId/hVEfTO4zOa0 0llTquS3cblmjRXmw7tUqgM+gqVGtNRFjgjMnesVfSS5q5PBt8tHnq4TlYyDFXKAN09a vfSpozchtluLjp/ccrgyo0aOcSgd/tOqAmImt4/GkQytk9jpvAsrn/JwOn3NOlnBrJ0d uLh4561VTDk8COPtCcM2G2yL8mxe+RBUd4CmJuYAev/FpvMtLQH2x0Bpntb5D/AIyYHe 66xw== X-Gm-Message-State: APt69E0GY44BcKEYQtzXalXTD4be55V4Ng8OSPl2RHAfazPwISDVFuA8 YJPeOzDLD1/gLCjSssa8ecpnkW9z X-Google-Smtp-Source: ADUXVKKNlm9xYaSmLrMkIeWlG6wAqv7C/r2HFYCl+AfnvWNre7Z67H2g0YSnpnO7Cn/EvyesLXx2UQ== X-Received: by 2002:a63:27c6:: with SMTP id n189-v6mr16464725pgn.164.1529443451679; Tue, 19 Jun 2018 14:24:11 -0700 (PDT) Received: from [10.104.134.14] ([155.100.47.6]) by smtp.gmail.com with ESMTPSA id x19-v6sm898253pfi.5.2018.06.19.14.24.11 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Jun 2018 14:24:11 -0700 (PDT) Subject: Re: Load data from a csv file without using COPY To: pgsql-general@lists.postgresql.org References: From: Rob Sargent Message-ID: <44b6d6c0-b217-79bd-1bcf-b693817df047@gmail.com> Date: Tue, 19 Jun 2018 15:24:10 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 06/19/2018 03:14 PM, Ravi Krishna wrote: >> If performance is relevant then your app should probably be using COPY protocol, not line by line inserts. It's >> supported by most postgresql access libraries. If your app does that then using "\copy" from psql would be >> an appropriate benchmark. > Actually the reluctance to not use COPY is to make the benchmark same across two different RDBMS in > two diff env. If bulk loading is the actual production target, all your RDBMS choices have their own loaders.  I suggest that is what you ought tocompare.