Re: pg_stat_io clarifications: background worker, writes and reads

2024-05-21 Thread Dimitrios Apostolou
Hi Kashif, just to clarify my question, are you saying that the I/O from parallel workers is recorded into the "background worker" entry of pg_stat_io? Thanks, Dimitris On Wed, 15 May 2024, Kashif Zeeshan wrote: Hi parallel worker are used for parallel execution of the queries and you can fin

Re: pg_stat_io clarifications: background worker, writes and reads

2024-05-15 Thread Kashif Zeeshan
Hi parallel worker are used for parallel execution of the queries and you can find the help in the below link. https://www.postgresql.org/docs/current/how-parallel-query-works.html Its controlled by following parameters. max_worker_processes = 6 max_parallel_workers_per_gather = 3 max_parallel_

Re: pg_stat_io clarifications: background worker, writes and reads

2024-05-15 Thread Dimitrios Apostolou
So what is this particular "background worker" I'm seeing, given that I have no replication or extensions? Searching the logs I found entries like the following: LOG: background worker "parallel worker" (PID 93384) exited with exit code 1 This got logged when I killed a simple SELECT query tha

Re: pg_stat_io clarifications: background worker, writes and reads

2024-05-14 Thread Muhammad Imtiaz
Hi, In PostgreSQL, the pg_stat_io view provides detailed statistics on I/O operations. Background process perform maintenance tasks and other background operations essential to the functioning of the PostgreSQL database. They include processes such as: 1. Autovacuum Workers 2. WAL Writer 3. Backg

Re: pg_stat_io clarifications: background worker, writes and reads

2024-05-14 Thread Kashif Zeeshan
Hi background workers are used to perform tasks on db e.g. I/O, replication, clone schema, vacuum etc, you can find more details on following links. https://www.postgresql.org/docs/current/bgworker.html#:~:text=PostgreSQL%20can%20be%20extended%20to,linked%20to%20the%20server's%20status . Regards

pg_stat_io clarifications: background worker, writes and reads

2024-05-14 Thread Dimitrios Apostolou
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