Bulk loading into PostgreSQL: Options and comparison
1–10 of 30 posts
Re: Bulk loading into PostgreSQL: Options and comparison
#2One other note:
> Goto solution for bulk loading into PostgreSQL is the native copy command. But one limitation with the copy command is that it requires the CSV file to be placed on the server.
You can use `COPY ... FROM STDIN` and stream the data from the client, this is basically what `/copy` does in psql.
Re: Bulk loading into PostgreSQL: Options and comparison
#3Re: Bulk loading into PostgreSQL: Options and comparison
#4I feel like the article misses most of the 'meat' of bulk loading setups. e.g. Using partitioned tables, attaching partitions with little to no locking, indexing after loading, `COPY ... FREEZE`, etc. One other note: > Goto solution for bulk loading into PostgreSQL is the native copy command. But one limitation with the copy command is that it requires the CSV file to be placed on the server. You can use `COPY ... FR…
What good do partitions do? Loading in parallel?
Re: Bulk loading into PostgreSQL: Options and comparison
#5I feel like the article misses most of the 'meat' of bulk loading setups. e.g. Using partitioned tables, attaching partitions with little to no locking, indexing after loading, `COPY ... FREEZE`, etc. One other note: > Goto solution for bulk loading into PostgreSQL is the native copy command. But one limitation with the copy command is that it requires the CSV file to be placed on the server. You can use `COPY ... FR…
The article did compare loading with index vs index after load. What good do partitions do? Loading in parallel?
Re: Bulk loading into PostgreSQL: Options and comparison
#6What about cases where there's multiple tables with foreign keys between them? Should you just drop the constraints, import tables individually, and then re-apply the constraints? Any alternatives?
Re: Bulk loading into PostgreSQL: Options and comparison
#7Re: Bulk loading into PostgreSQL: Options and comparison
#8Re: Bulk loading into PostgreSQL: Options and comparison
#9What about cases where there's multiple tables with foreign keys between them? Should you just drop the constraints, import tables individually, and then re-apply the constraints? Any alternatives?
https://www.postgresql.org/docs/9.1/sql-set-constraints.html
Re: Bulk loading into PostgreSQL: Options and comparison
#10What about cases where there's multiple tables with foreign keys between them? Should you just drop the constraints, import tables individually, and then re-apply the constraints? Any alternatives?