postgres 18 - ghdrako/doc_snipets GitHub Wiki
Parallel COPY from file to table
COPY your_table FROM '/path/to/yourfile.csv' WITH (FORMAT csv, PARALLEL workers); --workers - number of workers
COPY your_table FROM '/path/to/yourfile.csv' WITH (FORMAT csv, PARALLEL 4);