by mbell · 5y ago · 0 comments
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 ... FROM STDIN` and stream the data from the client, this is basically what `/copy` does in psql.
What good do partitions do? Loading in parallel?
Swapping out a child table and dropping the old one is free in that sense, but does require an exclusive lock which can cause issues if you have long running queries.