Search Postgresql Archives

Re: COPY threads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 
> pg_restore doesn't take locks on the table for the COPY, it does so
> because creating the table takes an exclusive lock.


Interesting.  I seem to recollect reading here that I can't have concurrent COPY on the same table because of the lock.
To give an example:

If I have a large file with say 400 million rows, can I first split it into 10 files of 40 million rows each and then fire up 10 different
COPY sessions , each reading from a split file, but copying into the same table.  I thought not.  It will be great if we can do this.




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux