We have postgresql 11.7 database in docker container.
We had an issue
"pq: could not resize shared memory segment "/PostgreSQL.XXX" to XXX bytes: No space left on device", described here.
Solution helped, we do not have an issue anymore. But which size should we set for shm_size for docker container with Postgres?
Is any recommendation? How can we calculate 'optimal size' for shm_size?