Still running into this problem when adjusting the .option("pool.maxSize", "64") down to 50. Trying 32 now. The last crash was due to FATAL: (53300) connection limit exceeded for non-superusers when connection count due to the Spark Connector spiked to around 220 active connections, half where INSERT INTO and the other have were SELECT EXISTS.
If the maximum JDBC pool size is 50, how can 200+ active connections be established? Or are these connections the http connections between the Spark workers and Greenplum segments? I haven't found of any way to control the amount of http connections in the Spark Connector.