Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s6yjF-002pCu-2G for pgsql-general@arkaria.postgresql.org; Tue, 14 May 2024 20:26:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1s6yjF-002gM4-65 for pgsql-general@arkaria.postgresql.org; Tue, 14 May 2024 20:26:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s6yjE-002gLw-RF for pgsql-general@lists.postgresql.org; Tue, 14 May 2024 20:26:28 +0000 Received: from mout.gmx.net ([212.227.15.18]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1s6yjC-000Da0-2e for pgsql-general@lists.postgresql.org; Tue, 14 May 2024 20:26:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1715718383; x=1716323183; i=jimis@gmx.net; bh=KKu5muuRIfgq4WiKNxNYLq1RQ/DUlNOuo5MB6NOFSkI=; h=X-UI-Sender-Class:Date:From:To:Subject:Message-ID:MIME-Version: Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=PgRCumXH8CCcUIIfSPXfMWY/jzQiE60XAdTfmFmKW+ieyVnV4Jc68D1JvsZ00RtB hxOyuExZuZ976vbmF9qyQ0zYdm1WkFFeVTmRxgCOu42YWfGO8a3ExX9nQ9uidE7JR bmJGeIfb8+5YvPUTehimlRURefLTF8paUi9Dbc9w1WDPy0+u8BhEtLUjqKlv0k3V4 nbCVf/NLBG5xUr4XcAXt5zNzYNtqy7CUUfnP4+vW/SZbIoZZil1xBduw5DwbNZAyr 1jBkt/2Qel6nsix4Fj1ChI0TS9eIwyy9ReRoJkKF40Yc5coDtClT7T64SjlcjCA23 J9rECOh9EysEASqW1Q== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [10.9.70.35] ([185.55.106.54]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MFbRs-1sMycT2NjC-00DrJK for ; Tue, 14 May 2024 22:26:23 +0200 Date: Tue, 14 May 2024 22:26:22 +0200 (CEST) From: Dimitrios Apostolou To: pgsql-general@lists.postgresql.org Subject: pg_stat_io clarifications: background worker, writes and reads Message-ID: <2e9b2b7b-79a1-a7f2-e05e-9cefda601c09@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Provags-ID: V03:K1:pljxgHvfNR/ZZIQue07kjwHpJDMRhh38NQI3EpMl/bky6t9M+4i 7Vk+utsOljummvmxMfJLWxAlxEKEDPC3R2NPHaKi39gAPHWZni70MhrIqhruu5301Bwk4tf AZxDpTorrAR7RzSQ78rw0N8yRltGH/fCwkttJC+9UvYu4LpN2/ZKNMrxqRZbspSK5ltaARv EFjVJpsVUrkEeN9DgiwaQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:EB9n6EDxvg0=;aTrpvmR6SL05NXL63ta76ctUBvn z+P4d1TaoNTd3W0xzL9kW5zrb77lHd6HEw5gN1sJJf+Spj5foieOos1e0uj0YPtIWRA68DvjO zFs9Rchj9tuqjAziaLdIAZqvzqZSePgpetiko9xLmBGW1C9coB+DVi6hZhcwa0NfZaCCUvnQb lq/mH8hekxLNcmkb+5D5n0R2O6TZs7aSXKkIwtRIX+mE6iwmtaWDV4Mb/cM6mc6t7tNJrM+Og D05GXH8jxwrjedmvy8i2hCJiqSGTeN8MAzW+RiiowbL/UqLQmN4JD9hS0Azysq3lhNy6HzOHi 7PBvPn/EDa1sV7rWa1x/3tJiy2A5MRrVv7TwvcKGc80358LYrRWV5WxEF2x3nELWDqf0iu5Jl OkgYzJw9HAgOnWt6m97hCfGi8eL3NvW3VYbNvzSk6Aq+uMQ/cljoMTetPm4O+lkblA4butX3C 3p5bJkS3xNDYYWcAnC0ckXcZgr9Rq9mUwNbHQCLMB4yEQW/4VCOIHDqKEOhVPY1DGqxG8JCCt 36MwRAlz7XkAmPtZDfgyYqW3Ufs0VilNJ8KiKZjmPUF7oD4YIltaH99D5/TZkJArsCOnHlWzu mtH3G5F6gS6nI8UUbeJBv8m/nWDXXPWaXkaYEnUurgnzNZJ33VFTKtAZ6HSuDNUjJTmbDgfLT 0UcR//ALnkoe568LxG3uQJ6WCpm673mjagAR9RO4LkJz/MnMCjy4kIR76jZcitqo3DIAsnvRT 6s6E4TMeoeiEzDh49/HuPehvq/nC5dSSK4YwGDkqR6zJ/PQK4ZJ+XMpts0BDS927iawNmgJHU JkyIwLzdWaZ/vcdqO7Q+JvXQ7mwsnKuiVoihzTBqfKoX0= Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello list, what is the "background worker" in the pg_stat_io statistics view? I'm reading the documentation but can't figure this one out knowing that it is not autovacuum or bgwriter. And I'm not aware of any extension I might have with registered background worker. Additionally, how can it be evictions > writes? I would expect every eviction to cause a write. Finally about "hits", I understand they are reads found in shared_buffers, so they never registered into the "reads" counter. So is "reads" in pg_stat_io the equivalent to misses, i.e. the opposite of "hits", the read attempts not found in the shared_buffers, that needed to be fetched from the disk (or OS buffercache)? backend_type | object | context | reads | read_time | wr= ites | write_time | writebacks | writeback_time | extends | extend_time | = op_bytes | hits | evictions | reuses | fsyncs | fsync_time | = stats_reset =2D------------------+---------------+---------+---------+-------------+--= ------+------------+------------+----------------+---------+-------------+= ----------+-----------+-----------+--------+--------+------------+--------= ----------------------- background worker | relation | normal | 5139575 | 2196288.011 | 6= 3277 | 1766.94 | 0 | 0 | 0 | 0 | = 8192 | 876913705 | 5139653 | | 0 | 0 | 2024-04-= 08 08:50:02.971192+00 Thank you in advance, Dimitris