The setting for shared_buffers is not taken into account here--only the effective cache_size_value is, so it should include memory dedicated to the database too.+effective_cache_size should be set to an estimate of how much memory is available for disk caching by the operating system and within the database itself, after taking into account what is used by the OS itself and other applications.