Re: weird issue with occasional stuck queries

2022-04-02 Thread overland
that yet understanding each one and setting it correctly is important to get the best out of your machine. It takes time but with many options comes great power. -Original Message- From: spiral To: pgsql-gene...@postgresql.org Subject: weird issue with occasional stuck queries Date: Fri,

Re: weird issue with occasional stuck queries

2022-04-02 Thread Adam Scott
The logs were helpful. You may want to see the statements around the errors, as more detail may be there such as the SQL statement associated with the error. Deadlocks are an indicator that the client code needs to be examined for improvement. See https://www.cybertec-postgresql.com/en/postgres

Re: weird issue with occasional stuck queries

2022-04-02 Thread spiral
Hey, > That wait event according to documentation is "Waiting to access the > multixact member SLRU cache." SLRU = segmented least recently used > cache I see, thanks! > if you are low on memory, it can slow down the allocation of > buffers. Do you have a query that is a "select for update" run

Re: weird issue with occasional stuck queries

2022-04-01 Thread Adam Scott
If you get a chance, showing the `top` output might be useful as well. For instance if you are low on memory, it can slow down the allocation of buffers. Another thing to look at is `iostat -x -y` and look at disk util %. This is an indicator, but not definitive, of how much disk access is going