does anyone know what this error is in relation to ? Is it in relation to the size of the RDS DB Instance or is it in relation to a temp tablespace ?
ERROR: could not write to hash-join temporary file: No space left on device;
does anyone know what this error is in relation to ? Is it in relation to the size of the RDS DB Instance or is it in relation to a temp tablespace ?
ERROR: could not write to hash-join temporary file: No space left on device;
For sort operations, local temp storage is used.
The local storage varies based on the size of the instance. In this case, enabling auto-scaling resolved the issue.
According to this AWS article
All DB temporary files (for example, logs and temporary tables) are stored in the instance local storage. This includes sorting operations, hash tables, and grouping operations that are required by queries.
This leaves you with the following options:
Enabling autoscaling and adding read replicas did not help in my case.