Chandy G schrieb am 12.06.2024 um 09:47: > Eventhough pg jdbc driver provides a way to set fetch size to tune > the driver to achieve better throughput, the JVM fails at the driver > level when records of large size (say 200mb each) flows through. > this forces to reduce the fetch size (if were to operate at a fixed > Xmx setting of client jvm). Did you try the driver's "adaptive fetch" feature? https://jdbc.postgresql.org/documentation/use/#connection-parameters