Loading topic
postgresql.conf and reload or restart the server, and read a simple EXPLAIN plan. It covers the three sources of evidence you will use for every later change in this tutorial: the cumulative statistics views, EXPLAIN (ANALYZE, BUFFERS), and 6 min readpostgresql.conf and restart a server, and read a simple EXPLAIN plan. It also assumes you know that the operating system caches file data in RAM.6 min readpostgresql.conf, and read a simple EXPLAIN plan. It also assumes you know that the operating system caches file contents in unused RAM. By the end you should be able to set effective_cache_size from a machine's memory, explain what it does a8 min readpostgresql.conf, and read a simple EXPLAIN plan. It covers what work_mem controls, how to spot spills to disk, and how to raise it without risking an out-of-memory failure.7 min readwork_mem does, that you can read Sort Method lines in EXPLAIN (ANALYZE) output, and that you can change a setting at the session, role, or server level. The previous chapter covered work_mem and temporary-file spills. This one covers the setting that lets h6 min readwork_mem. It assumes you can run queries in psql, edit postgresql.conf, and tell a reload from a restart. It also assumes you know that work_mem limits a single sort or hash node in a query. Everythin6 min readshared_buffers and work_mem, can edit postgresql.conf and reload the server, and can read a simple EXPLAIN plan. Here you will combine the memory settings into one worst-case budget and use it to pick safe values for work_mem, `maintenan6 min readpostgresql.conf, reload or restart the server, and read basic psql output. You should also know that PostgreSQL keeps data pages in shared_buffers and writes changed pages to disk later. Here you will learn how the write-ahead log (WAL) and checkpoints control6 min readshared_buffers and reach disk, and which process does the writing. It assumes you can run queries in psql, edit postgresql.conf, and read the earlier chapters on shared_buffers, WAL, and checkpoints. Some views differ by version. The chapter notes6 min readpostgresql.conf, know which settings need a restart, and have root access to the database host to change kernel settings. It covers Linux, where most PostgreSQL servers run. Huge pages affect how the operating system maps shared_buffers. They do not change how P6 min readwork_mem, shared_buffers, and memory budgeting across connections. It also assumes you can use a Linux shell wit6 min readpostgresql.conf, reload or restart the server, and read a simple EXPLAIN plan. It also assumes you know the settings from earlier chapters: shared_buffers,6 min read