Re: COPY threads - Mailing list pgsql-general

From Ravi Krishna
Subject Re: COPY threads
Date
Msg-id A5CE72CF-4A43-46C6-8A92-DAFB17903182@aol.com
Whole thread Raw
In response to Re: COPY threads  ("Peter J. Holzer" <hjp-pgsql@hjp.at>)
Responses Re: COPY threads  (Ravi Krishna <srkrishna1@aol.com>)
List 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 ?



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: something weird happened - can select by column value although column value exist
Next
From: Ravi Krishna
Date:
Subject: Re: COPY threads