mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Remove dynamic_shared_memory_type=none
PostgreSQL nowadays offers some kind of dynamic shared memory feature on all supported platforms. Having the choice of "none" prevents us from relying on DSM in core features. So this patch removes the choice of "none". Author: Kyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
This commit is contained in:
@ -106,7 +106,6 @@ const struct config_enum_entry dynamic_shared_memory_options[] = {
|
||||
#ifdef USE_DSM_MMAP
|
||||
{"mmap", DSM_IMPL_MMAP, false},
|
||||
#endif
|
||||
{"none", DSM_IMPL_NONE, false},
|
||||
{NULL, 0, false}
|
||||
};
|
||||
|
||||
@ -210,8 +209,6 @@ dsm_impl_can_resize(void)
|
||||
{
|
||||
switch (dynamic_shared_memory_type)
|
||||
{
|
||||
case DSM_IMPL_NONE:
|
||||
return false;
|
||||
case DSM_IMPL_POSIX:
|
||||
return true;
|
||||
case DSM_IMPL_SYSV:
|
||||
|
Reference in New Issue
Block a user