File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -1664,7 +1664,9 @@ include_dir 'conf.d'
1664
1664
<para>
1665
1665
At present, this setting is supported only on Linux and Windows. The
1666
1666
setting is ignored on other systems when set to
1667
- <literal>try</literal>.
1667
+ <literal>try</literal>. On Linux, it is only supported when
1668
+ <varname>shared_memory_type</varname> is set to <literal>mmap</literal>
1669
+ (the default).
1668
1670
</para>
1669
1671
1670
1672
<para>
Original file line number Diff line number Diff line change @@ -703,6 +703,12 @@ PGSharedMemoryCreate(Size size,
703
703
errmsg ("huge pages not supported on this platform" )));
704
704
#endif
705
705
706
+ /* For now, we don't support huge pages in SysV memory */
707
+ if (huge_pages == HUGE_PAGES_ON && shared_memory_type != SHMEM_TYPE_MMAP )
708
+ ereport (ERROR ,
709
+ (errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
710
+ errmsg ("huge pages not supported with the current shared_memory_type setting" )));
711
+
706
712
/* Room for a header? */
707
713
Assert (size > MAXALIGN (sizeof (PGShmemHeader )));
708
714
You can’t perform that action at this time.
0 commit comments