Closed markwkm closed 1 month ago
I figured this out, a patch is baking.
We thought we could be clever and use a TRUNCATE/FREEZE trick when loading data directly. It turns out that EGenLoader is loading batches of data at a time. So a new batch will TRUNCATE the previous batch of data. The current solution is to not use the TRUNCATE/FREEZE trick at all.
This appears to only happen with the "growing tables", at least at the default load parameters.
Will link to patch once it's pushed.
Fixed in e0264458f544abd19ca74ae9c59c6443f21563d6.
At least as recent as the update for egen v1.14.0, generating flat files and loading produces the expected number of rows, so this suggests there something wrong with the custom code path in EGenLoader.
The pgsql-check-db script suggests only the growing tables (expect trade_request) have issues: