Nope Michael, if 'stuff' gets spilled to disk does not end up in an error. It will silently write a file to disk for the time being and then deleted it when your operation is finished. period. Based on your log settings, it might appear in the logs, under 'temporary file created..'.
regards, fabio pardi
On 20/07/18 15:00, MichaelDBA wrote:
I do not think that is true. Stuff just gets spilled to disk when the work_mem buffers would exceed the work_mem constraint. They are not constrained by what real memory is available, hence the memory error! They will try to get memory even if it is not available as long as work_mem buffers threshold is not reached. |