Certain Queries Hit a space Error, but we are no where close to hitting the 50GB allotted for pg

ERROR: could not resize shared memory segment "/PostgreSQL.904483596" to 4194304 bytes: No space left on device. Hi our app is down from the above error when certain queries are run. These queries were previously working. I've tried restarting everything and the error does not happen on our local database. Any ideas? 98f66160-ce86-4b15-a73b-cab912256208/service/30c393cd-fc3a-4ed3-a433-9017f7032947
21 Replies
Percy
Percy9mo ago
Project ID: 98f66160-ce86-4b15-a73b-cab912256208,30c393cd-fc3a-4ed3-a433-9017f7032947
Brody
Brody9mo ago
what's your current disk usage?
themkrage
themkrageOP9mo ago
No description
themkrage
themkrageOP9mo ago
3.42GB out of the 50GB
Brody
Brody9mo ago
how much space does your local database have available to it?
themkrage
themkrageOP9mo ago
Where is that set? the local database is just a local pg server
Brody
Brody9mo ago
if its a local database then how much drive space do you have free
themkrage
themkrageOP9mo ago
Sorry bit confused. The issue is when the database is hosted on railway, not locally. The local database is just on my machine which is 1TB macbook
Brody
Brody9mo ago
No confusion needed, 1TB is quite a lot more than 50GB
themkrage
themkrageOP9mo ago
Correct, the query runs fine locally, but when i run it connected to my railway pg instance, it fails with this error
Brody
Brody9mo ago
So it seems like you are running into a resource limitation on railway
themkrage
themkrageOP9mo ago
Yes, but im not hitting any memory limits as far as i can tell. Is there anything you can see on my end about my project? 98f66160-ce86-4b15-a73b-cab912256208/service/30c393cd-fc3a-4ed3-a433-9017f7032947
Brody
Brody9mo ago
I dont work for railway, so unfortunately those ids dont do anything for me
themkrage
themkrageOP9mo ago
Ah I assumed conductor meant you did oops lol
Brody
Brody9mo ago
i have an idea of a possible solution, it would require custom instance sizing from railway, and thats only available on the business class, would that be something you are interested in?
themkrage
themkrageOP9mo ago
We are on the pro plan rn. Would be open to hearing!
Brody
Brody9mo ago
okay cool, i get you in touch with sales
angelo
angelo9mo ago
Hey @themkrage - can you email the team on team@, I have one last meeting and I will jump on to unblock you
themkrage
themkrageOP9mo ago
Just emailed @Angelo Thank you! I have also realized that this query seems to be trigerring it: const ssFacilitiesWithRent = await PropRisePrismaClient.property.count({ where: { state: { equals: state, mode: "insensitive", }, landUseCodes: { has: LandUseCode.SELF_STORAGE, }, selfStorageRents: { some: { id: { gte: 0, } } }, }, }); but this doesn't seem too complex the tables its running on are 200k entries max
angelo
angelo9mo ago
Okay, got lunch, finally addressing this.
Ray
Ray8mo ago
@Angelo was there a resolution to this?
Want results from more Discord servers?
Add your server