Once the work_mem , temp_buffer or maintenence_work_mem is full where does the PostgreSQL writes to the disk, what is the location of temporary files by default
Asked
Active
Viewed 1,003 times
1 Answers
2
Temporary files (for operations such as sorting more data than can fit in memory) are created within
PGDATA/base/pgsql_tmp, or within apgsql_tmpsubdirectory of a tablespace directory if a tablespace other than pg_default is specified for them. The name of a temporary file has the formpgsql_tmpPPP.NNN, wherePPPis the PID of the owning backend andNNNdistinguishes different temporary files of that backend