Buffer management in database systems controls how pages are stored in memory buffers. When a page is requested, the system first checks if it is already in the buffer. If it is, the page is used immediately. If not, the page is loaded from disk into the buffer. Because the buffer has limited space, if it is full, an existing page must be replaced to make room for the new page. This process helps reduce slow disk access by keeping frequently used pages in memory. The execution example shows requesting page 5, which is not in the buffer, so it is loaded from disk and replaces page 2. The buffer state changes accordingly, and the requested page is returned to the user.