Re: Autovacuum Hung Due to Bufferpin

2023-01-11 Thread Tom Lane
Fred Habash writes: > According to pgstattuple, dead_tuple_count = 0. If this is the case, then > what other explanations do we have? Could be that old tuple(s) now require freezing. > I mean, how can I find out what blocker > session is holding the bufferpin to terminate it? I don't think ther

Re: Autovacuum Hung Due to Bufferpin

2023-01-11 Thread Fred Habash
According to pgstattuple, dead_tuple_count = 0. If this is the case, then what other explanations do we have? I mean, how can I find out what blocker session is holding the bufferpin to terminate it? SELECT * FROM pgstattuple('.*'::regclass); table_len | tuple_count | tuple_len | tuple_p

Re: Autovacuum Hung Due to Bufferpin

2023-01-11 Thread Tom Lane
Fred Habash writes: > pg_locks shows no blockers while this is happening. This view shows a > constant 13 sessions running SELECT statements on this table posting > AccessShareLock. Of course, these is also the AV sessions > with ShareUpdateExclusiveLock > ... > Why is AV blocked by bufferpin give