Set enable_adio_function to PGC_INTERNAL.

This commit is contained in:
TotaJ
2021-03-08 19:16:22 +08:00
parent df22f91ed5
commit 9ef7171468
4 changed files with 4 additions and 6 deletions

View File

@ -576,7 +576,6 @@ cstore_backwrite_max_threshold|int|4096,1073741823|kB|NULL|
cstore_backwrite_quantity|int|1024,1048576|kB|NULL|
cstore_prefetch_quantity|int|1024,1048576|kB|NULL|
enable_adio_debug|bool|0,0|NULL|NULL|
enable_adio_function|bool|0,0|NULL|NULL|
enable_fast_allocate|bool|0,0|NULL|NULL|
enable_stream_replication|bool|0,0|NULL|NULL|
fast_extend_file_size|int|1024,1048576|kB|NULL|

View File

@ -3059,8 +3059,8 @@ static void InitConfigureNamesBool()
check_adio_debug_guc,
NULL,
NULL},
{{"enable_adio_function", PGC_POSTMASTER, DEVELOPER_OPTIONS, gettext_noop("Enable adio function."), NULL},
/* This is a beta feature, set it to PGC_INTERNAL, so user can't configure it */
{{"enable_adio_function", PGC_INTERNAL, DEVELOPER_OPTIONS, gettext_noop("Enable adio function."), NULL},
&g_instance.attr.attr_storage.enable_adio_function,
false,
check_adio_function_guc,

View File

@ -810,7 +810,6 @@ audit_enabled = on
#------------------------------------------------------------------------------
# ADIO
#------------------------------------------------------------------------------
#enable_adio_function = off
#enable_fast_allocate = off
#prefetch_quantity = 32MB
#backwrite_quantity = 8MB

View File

@ -439,7 +439,7 @@ SHOW io_control_unit;
\! echo "io_control_unIt = 60000" >> @abs_srcdir@/tmp_check/datanode1/postgresql.conf
\! echo "# io_control_uniT = 80000" >> @abs_srcdir@/tmp_check/datanode1/postgresql.conf
ALTER SYSTEM SET "io_control_UNit" TO 90000;
NOTICE: There are 3 "io_control_UNit" not commented in "postgresql.conf", and only the last one in 916th line will be set and used.
NOTICE: There are 3 "io_control_UNit" not commented in "postgresql.conf", and only the last one in 915th line will be set and used.
\! grep "io_control_" @abs_srcdir@/tmp_check/datanode1/postgresql.conf
io_control_unit = 10000
# io_control_Unit = 50000
@ -465,7 +465,7 @@ SHOW io_control_unit;
-------------------------------------------------------
\! rm @abs_srcdir@/tmp_check/datanode1/postgresql.conf
ALTER SYSTEM SET "io_control_unIT" TO 6000;
NOTICE: There are 3 "io_control_unIT" not commented in "postgresql.conf", and only the last one in 916th line will be set and used.
NOTICE: There are 3 "io_control_unIT" not commented in "postgresql.conf", and only the last one in 915th line will be set and used.
select pg_sleep(1);
pg_sleep
----------