Just a bump to see if there is a time frame for a fix on this. Google Cloud doesn't yet support setting the *enable_incremental_sort * flag yet. Was able to temporarily resolve by running the following though:
ALTER DATABASE corpdb SET enable_incremental_sort TO OFF; Hope this helps others until the core issue has been resolved. -- Sent from: https://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html