Skip to content

Instantly share code, notes, and snippets.

@nbhusare
Created March 31, 2021 15:37
Show Gist options
  • Save nbhusare/54890c2cb5927b8a5a46be208ecb9752 to your computer and use it in GitHub Desktop.
Save nbhusare/54890c2cb5927b8a5a46be208ecb9752 to your computer and use it in GitHub Desktop.
Postgresql: Out of memory while running a script
ERROR: out of shared memory
HINT: You might need to increase max_locks_per_transaction.
# Solution
1. Open /data/postgresql.conf
2. set max_locks_per_transaction = 1024
3. Save and Restart postgresql.
# Restarting Postgresql
1. Winkey + R
2. services.msc
3. Search Postgres service based on version installed
4. Click stop, start or restart the service option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment