Re: COPY threads

From: Ravi Krishna <srkrishna1(at)aol(dot)com>
To: "Peter J(dot) Holzer" <hjp-pgsql(at)hjp(dot)at>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: COPY threads
Date: 2018-10-11 21:08:19
Message-ID: A5CE72CF-4A43-46C6-8A92-DAFB17903182@aol.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>>>
>> Thank you. Let me test it and see the benefit. We have a use case for this.
>

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;

From 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 ?

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ravi Krishna 2018-10-11 21:12:00 Re: COPY threads
Previous Message Tom Lane 2018-10-11 21:03:08 Re: something weird happened - can select by column value although column value exist