I have a problem that is also related to shmem queue [1], however, I cannot reproduce it. How did you reproduce this problem?
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных