Source: https://stackoverflow.com/questions/42478488/resize-shared-buffer-size-in-postgresql-hosted-in-aws-rds To calculate the correct value for shared_buffers in a AWS RDS PostgreSQl database: (2*1024*1024*12.5/100)/8) # = 32768 The values: