Other Default Parameters
This section describes the default database loading parameters.
dynamic_library_path
Parameter description: Specifies the path that the system will search for a shared database file that is dynamically loadable. When a dynamically loadable module needs to be opened and the file name specified in the CREATE FUNCTION or LOAD command does not contain a directory, the system will search this path for the required file. Only the SYSADMIN user can access this parameter.
Parameter type: string.
Unit: none
Value range: a list of absolute paths separated by colons (;) in Windows.
1 | dynamic_library_path = '/usr/local/lib/gaussdb:/opt/testgs/lib:$libdir' |
If the value of this parameter is set to an empty character string, the automatic path search is turned off.
Default value: "$libdir"
Setting method: This is a SUSET parameter. Set it based on instructions provided in Table 1.
Setting suggestion: Retain the default value.
Risks and impacts of improper settings: The dynamic library search paths specified by local_preload_libraries and shared_preload_libraries also depend on this parameter. If this parameter is left blank or set to an invalid path, the dynamic libraries fail to be loaded, which will result in abnormal database services.
gin_fuzzy_search_limit
Parameter description: Specifies the upper soft limit of the size of the set returned by the UGIN or GIN. If this parameter is not set to the default value, an error is reported during UGIN scan.
Parameter type: integer.
Unit: none
Value range: 0 to 2147483647
Default value: 0
Setting method: This is a USERSET parameter. Set it based on instructions provided in Table 1.
Setting suggestion: Retain the default value.
Risks and impacts of improper settings: Change the parameter value after fully understanding the parameter meaning and verifying it through testing.
enable_astore_gin
Parameter description: Specifies whether to enable the GIN function. If this function is enabled, Astore supports GIN creation. If this function is disabled, the GIN function is unavailable.
Parameter type: Boolean.
Unit: none
Value range:
- on: Astore supports the GIN function.
- off: Astore does not support the GIN function.
Default value: on
Setting method: This is a POSTMASTER parameter. Set it based on instructions provided in Table 1.
Setting suggestion: Retain the default value and adjust the value based on service requirements.
Risks and impacts of improper settings: none
enable_astore_gist
Parameter description: Specifies whether to enable the GiST function. If this function is enabled, Astore supports GiST creation. If this function is disabled, the GiST function is unavailable.
Parameter type: Boolean.
Unit: none
- on: Astore supports the GiST function.
- off: Astore does not support the GiST function.
Default value: on
Setting method: This is a POSTMASTER parameter. Set it based on instructions provided in Table 1.
Setting suggestion: Retain the default value and adjust the value based on service requirements.
Risks and impacts of improper settings: none
local_preload_libraries
Parameter description: Specifies one or more shared libraries that are to be preloaded at connection start. If multiple shared libraries are separated with commas (,). All library names (except the names in double quotation marks) are converted to lower case.
- Any user can change this option. Therefore, library files that can be loaded are restricted to those saved in the plugins subdirectory of the standard library installation directory. It is the database administrator's responsibility to ensure that libraries in this directory are all safe. Entries in local_preload_libraries can specify the library directory explicitly, for example, $libdir/plugins/mylib, or just specify the library name, for example, mylib. (mylib is equivalent to $libdir/plugins/mylib.)
- Unlike shared_preload_libraries, there are no differences in performance between loading a module at session start or doing this during the session. The intent of this feature is to allow debugging or performance-measurement libraries to be loaded into specific sessions without an explicit LOAD command. For example, debugging can be enabled under a given username by setting this parameter to ALTER USER SET.
- Every GaussDB-supported library has a "magic block" that is checked to guarantee compatibility. For this reason, non-GaussDB-supported libraries cannot be loaded in this way.
Parameter type: string.
Unit: none
Value range: a list of shared libraries separated by commas (,), or an empty string.
Default value: ""
Setting method: This is a BACKEND parameter. Set it based on instructions provided in Table 1.
Setting suggestion: Retain the default value.
Risks and impacts of improper settings: If the specified library is not found, the connection fails. If the configuration is incorrect (for example, the length exceeds the limit or the directory is invalid), the process cannot be started properly.
enable_driver_param_sync
Parameter description: Specifies whether the GUC parameters specified when the driver creates a database connection are synchronized from CNs to DNs.
Parameter type: Boolean.
Unit: none
Value range:
- on: enabled.
- off: disabled.
Default value: off for an upgraded database instance and on for a newly installed database instance.
Setting method: This is a SIGHUP parameter. Set it based on instructions provided in Table 1.
Setting suggestion: Retain the default value. For an upgraded database, you are advised to manually set this parameter to on after evaluating the impact on services.
Risks and impacts of improper settings: If this parameter is set to off, after the RESET ALL command is executed, the parameter values set on CNs when the driver creates a connection are restored to the values set during connection, and the parameter values on DNs are restored to the default values. In this case, the parameter values on CNs and DNs are different. Therefore, you are advised to manually set this parameter to on for an upgraded database after evaluating the impact on services to avoid parameter inconsistency.
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot