Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Batch returning support #204
Remove the restriction that a batch that returns generated keys is executed internally as individual queries.
With this change PgJDBC now executes batches that return generated keys in internal sub-batches separated by periodic Sync, flush, and input consume pauses, just, like it does for batches that don't return keys.
This is safe (or almost as safe as it ever was given github #194) because we force a Describe, then estimate the result row size and adjust the batch size accordingly.
This approach does increase the deadlock risk if a batch executes statements where each statement returns many generated keys (e.g. a big multi-entry
Fixes github #195.