use effective_cache_size, shared_buffers configuration variable if they are set
merging lp:~patrick-hetu/charms/precise/postgresql/fix-1224668 as per https://code.launchpad.net/~patrick-hetu/charms/precise/postgresql/fix-1224668/+merge/185643