To resolve this issue, you need to increase thetemp_file_limit parameter in your PostgreSQL configuration
Here are the steps to fix it:
Access your Google Cloud SQL instance settings.
Locate the database flags or parameters section.
Find the temp_file_limit flag and increase its value.
The value is specified in kilobytes (kB).
The default in PostgreSQL is -1, which means no limit. However, Cloud SQL may enforce a smaller custom value depending on your instance configuration.
If you’re unsure about the appropriate value, start by doubling the current limit and adjust as needed based on your workload. Increasing this limit allows larger queries to complete but may also increase storage usage, so monitor performance and disk space after making the change.
Save the changes. Updating database flags in Cloud SQL typically requires a restart of the instance for the new settings to take effect.
After modifying the temp_file_limit, restart your PostgreSQL instance (if required) and run an extraction in Stitch.
Cause
The error message indicates that the temporary file size has exceeded the temp_file_limit in your Google Cloud SQL PostgreSQL database. This limit is set to control the maximum size of temporary files used during query execution.