Postgres ERROR: could not resize shared memory segment: No space left on device
Trying to run a VACUUM on my Postgres tables, I get the following error on the biggest one :
VACUUM ANALYZE student_time_slot;
ERROR: could not resize shared memory segment "/PostgreSQL.2416765338" to 67146144 bytes: No space left on device
Here are my tables having dead rows:
On StackOverflow all what I find concerns Docker run parameters I can't manage myself here: https://stackoverflow.com/questions/56751565/pq-could-not-resize-shared-memory-segment-no-space-left-on-device
Also, obviously, I checked that my Pg service has remaining space as shared in the attachments
Any advice ?Stack Overflow
pq: could not resize shared memory segment. No space left on device
I have on a dashboard, a number of panels (numbering around 6)to display data points chart making queries to dockerised instance of PostgreSQL database.
Panels were working fine until very recently,
Solution:Jump to solution
You can set the shm size!
RAILWAY_SHM_SIZE_BYTES=134217728
(128MB)
You don't need anywhere near 4GB given the amount in the error....7 Replies
Project ID:
65aff0db-6586-4be0-8420-b2e67ae4378d
65aff0db-6586-4be0-8420-b2e67ae4378d
Solution
You can set the shm size!
RAILWAY_SHM_SIZE_BYTES=134217728
(128MB)
You don't need anywhere near 4GB given the amount in the error.Hi @Brody , I added to the env var of my Pg service which triggered a redeploy.
So I don't know if I did well or if the reboot itself unlocked the situation, flushing all the dead rows.
Could you confirm me I added it at the right place? If so, thank you very much!
a little tip about Directus, you can disable the activity logging per module, saving you some space
yes you've correctly added it to the database, you're good to go!
Thank you, I already disabled all the revisions but the activity log is too much important to understand our users (activation, retention...).
I already deleted the logs of the past year btw
Big up to "@Brody the savior"! ^^