Postgresのwork_memオプションはどのように機能しますか?ここでhttp://www.postgresql.org/docs/8.4/static/runtime-config-resource.htmlから説明があります:Postgresのwork_memを最大にするとどうなりますか?
Specifies the amount of memory to be used by internal sort operations and hash tables before switching to temporary disk files. The value defaults to one megabyte (1MB). Note that for a complex query, several sort or hash operations might be running in parallel; each one will be allowed to use as much memory as this value specifies before it starts to put data into temporary files. Also, several running sessions could be doing such operations concurrently. So the total memory used could be many times the value of work_mem; it is necessary to keep this fact in mind when choosing the value. Sort operations are used for ORDER BY, DISTINCT, and merge joins. Hash tables are used in hash joins, hash-based aggregation, and hash-based processing of IN subqueries.
私はここに、おそらく完全に間違っているbut..isn't基本的にオペレーティングシステムで「仮想メモリ」と同じことを「一時ディスクファイルへの切替え」? RAMが消えたら、OSはスワップファイルを作成しませんか?これを100TBのようなものに設定し、OSがそれを理解できるようにする方が良いのではないでしょうか?潜在的に私のシステムを台無しにする前に、誰かが実際にこのアプローチを試みたかどうかを確認したい。
'スワップするデータベースサーバーはデッドデータベースサーバーです。' – hopla