May 2018
Intermediate to advanced
576 pages
30h 25m
English
If you need to reload the table completely from scratch, then specify the -WITH TRUNCATE clause in the pgloader script.
There are also options to specify SQL to be executed before and after loading the data. For instance, you may have a script that creates the empty tables before, or you can add constraints after, or both.
After loading, if we have load errors, then there will be some junk loaded into the PostgreSQL tables. It is not junk that you can see, or that gives any semantic errors, but think of it more like fragmentation. You should think about whether you need to add a VACUUM command after the data load, though this will make the load take possibly much longer.
We need to be careful to avoid loading data twice. The ...