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 1gAiC7-0006Uf-Vn for pgsql-general@arkaria.postgresql.org; Thu, 11 Oct 2018 21:08:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gAiC6-0000CH-EC for pgsql-general@arkaria.postgresql.org; Thu, 11 Oct 2018 21:08:30 +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 1gAiC5-0000Bl-Mt for pgsql-general@lists.postgresql.org; Thu, 11 Oct 2018 21:08:30 +0000 Received: from sonic311-14.consmr.mail.bf2.yahoo.com ([74.6.131.124]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gAiC2-0006L7-Ge for pgsql-general@lists.postgresql.org; Thu, 11 Oct 2018 21:08:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1539292104; bh=bxPfDJ7tXuv3cuI7VW+1mdgfk3AP3qga6xPe3mgNK+g=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject; b=HTJ7uoyHPpKzzBzJuPm/4AfB9WwEonz6bDiPn9mfOajDmsn71ELsG3c83vOJOr2PNWJ67pesMYs9I24+GJEMHDSJ/5DmMZ81JWKg2l4Bd82UAI4l9neK+mSgh7KPd1/JABKMnvrNd5ju8RjHX/1R6KqX1/x6niu0S2Us9tuOZRahyr7xsDuOZswtqwNKkZV43rfCx8wKk4VsU4JOyQC5f1HKFmzEFedNYs/HHZvA/QOMd83IHpfBjpFKNwDXOSMwxx2k1mvo2E7HIxXSoBKXG9Z7zF05X9z6LvDSkA+Att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eRCx4JwU0LXwnTGesB_uIinXcZdQZ4U8d4dovQ aVKLn_GB3iMTfKmjY.waKSXXV3Nfr24AlIcd1v7oKkCzAU9pNvRgnR4G2FTsSsFKOqAQ- Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.bf2.yahoo.com with HTTP; Thu, 11 Oct 2018 21:08:24 +0000 Received: from 165.225.39.63 (EHLO [192.168.1.83]) ([165.225.39.63]) by smtp426.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID fa61266c1fdb781a92dd4a356baed481; Thu, 11 Oct 2018 21:08:22 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: COPY threads From: Ravi Krishna In-Reply-To: <20181011200210.ldvty74xod7qw4zf@hjp.at> Date: Thu, 11 Oct 2018 17:08:19 -0400 Cc: pgsql-general@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <065f5e56-5b25-0ce2-e20b-4305f71b2301@gmail.com> <20181010192440.cdxues44gcvx2sbi@alap3.anarazel.de> <7FCA0163-130B-474D-BE00-3BB5D2E0EC89@aol.com> <20181010210729.ewntjynvutnlgdn2@alap3.anarazel.de> <10F9B024-556C-4C8E-B8F5-9461A4696BCA@anarazel.de> <4382AB2D-744F-4A4C-B847-AC3556C2F80E@aol.com> <20181011200210.ldvty74xod7qw4zf@hjp.at> To: "Peter J. Holzer" X-Mailer: Apple Mail (2.3445.9.1) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>=20 >> Thank you. Let me test it and see the benefit. We have a use case = for this. >=20 Well the result is not what I expected. this is the sql I used copy TEST.TABLE1 from = '/var/lib/postgresql/data/rkrishna/copytesting/xaa' with delimiter '|' = NULL as '' CSV HEADER; =46rom another session copy TEST.TABLE1 from = '/var/lib/postgresql/data/rkrishna/copytesting/xab' with delimiter '|' = NULL as '' CSV HEADER; Each had 16M rows. I see that one copy is blocking other. The table has no indexes while loading. Aren't they suppose to run concurrently without locking ?