Checking Server Configuration Files
Greenplum数据库系统的每个组件(主数据库,备用主数据库,主数据段和镜像数据块)都有自己的服务器配置文件(postgresql.conf)。 以下gp_tooikit对象可用于检查系统中所有主要postgresql.conf文件的参数设置:
• gp_param_setting('parameter_name')
• gp_param_settings_seg_value_diffs
gp_param_settlng('parameter_name')
This function takes the name of a serverconfiguration parameter and returns the postgresqi.confvalue for themaster and each active segment. This function is accessible to all users.
Table 108: gp_param_setting('parameter_name,) function
Example: SELECT * FROM gp_param_setting(,max_connections,);
|
gp_param_settlngs_seg_value_dlffs
被分类为本地参数的服务器配置参数(意味着每个段从它自己的postgresql.conf文件中获取参数值)应该在所有段上设置相同。 该视图显示不一致的本地参数设置。 不包括应该具有不同值的参数(如端口)。 所有用户都可以访问该视图。
Table 109: gp_param_settings_seg_value_diffs view
|
|
gp_pgdatabase_invalid视图可以用来检查停机的段。
This viewshows information about segments that are marked as down in the system catalog.This view is accessible to all users.
Table 110: gp_pgdatabase_invalid view
|
|