src/backend/utils/misc/guc.c
char *
GetConfigOptionByName(const char *name, const char **varname)
{
	struct config_generic *record;

	record = find_option(name, ERROR);
	if (record == NULL)
		ereport(ERROR,
				(errcode(ERRCODE_UNDEFINED_OBJECT),
			   errmsg("unrecognized configuration parameter \"%s\"", name)));
	if ((record->flags & GUC_SUPERUSER_ONLY) && !superuser())
		ereport(ERROR,
				(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
				 errmsg("must be superuser to examine \"%s\"", name)));

	if (varname)
		*varname = record->name;

	return _ShowOption(record, true);
}
/*
 * Return GUC variable value by name; optionally return canonical
 * form of name.  Return value is palloc'd.
 */
Return GUC variable value by name; optionally return canonical
form of name.  Return value is palloc'd.
Return GUC variable value by name ; optionally return canonical form of name . Return value is palloc ' d .
char *
GetConfigOptionByName(const char *name, const char **varname)
{
	struct config_generic *record;
	record = find_option(name, ERROR);
	if (record == NULL)
		ereport(ERROR,
				(errcode(ERRCODE_UNDEFINED_OBJECT),
			   errmsg("unrecognized configuration parameter \"%s\"", name)));
	if ((record->flags & GUC_SUPERUSER_ONLY) && !superuser())
		ereport(ERROR,
				(errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
				 errmsg("must be superuser to examine \"%s\"", name)));
	if (varname)
		*varname = record->name;
	return _ShowOption(record, true);
}
char * GetConfigOptionByName ( const char * name , const char * * varname ) { struct config_generic * record ; record = find_option ( name , ERROR ) ; if ( record == NULL ) ereport ( ERROR , ( errcode ( ERRCODE_UNDEFINED_OBJECT ) , errmsg ( " \" \" " , name ) ) ) ; if ( ( record -> flags & GUC_SUPERUSER_ONLY ) && ! superuser ( ) ) ereport ( ERROR , ( errcode ( ERRCODE_INSUFFICIENT_PRIVILEGE ) , errmsg ( " \" \" " , name ) ) ) ; if ( varname ) * varname = record -> name ; return _ShowOption ( record , true ) ; }
Return GUC variable value by name; optionally return canonical
 form of name.
Return GUC variable value by name ; optionally return canonical form of name .