src/bin/pg_dump/dumputils.c
bool
variable_is_guc_list_quote(const char *name)
{
	if (pg_strcasecmp(name, "local_preload_libraries") == 0 ||
		pg_strcasecmp(name, "search_path") == 0 ||
		pg_strcasecmp(name, "session_preload_libraries") == 0 ||
		pg_strcasecmp(name, "shared_preload_libraries") == 0 ||
		pg_strcasecmp(name, "temp_tablespaces") == 0 ||
		pg_strcasecmp(name, "unix_socket_directories") == 0)
		return true;
	else
		return false;
}
/*
 * Detect whether the given GUC variable is of GUC_LIST_QUOTE type.
 *
 * It'd be better if we could inquire this directly from the backend; but even
 * if there were a function for that, it could only tell us about variables
 * currently known to guc.c, so that it'd be unsafe for extensions to declare
 * GUC_LIST_QUOTE variables anyway.  Lacking a solution for that, it doesn't
 * seem worth the work to do more than have this list, which must be kept in
 * sync with the variables actually marked GUC_LIST_QUOTE in guc.c.
 */
Detect whether the given GUC variable is of GUC_LIST_QUOTE type.
It'd be better if we could inquire this directly from the backend; but even
if there were a function for that, it could only tell us about variables
currently known to guc.c, so that it'd be unsafe for extensions to declare
GUC_LIST_QUOTE variables anyway.  Lacking a solution for that, it doesn't
seem worth the work to do more than have this list, which must be kept in
sync with the variables actually marked GUC_LIST_QUOTE in guc.c.
Detect whether the given GUC variable is of GUC_LIST_QUOTE type . It ' d be better if we could inquire this directly from the backend ; but even if there were a function for that it could only tell us about variables currently known to guc . c so that it ' d be unsafe for extensions to declare GUC_LIST_QUOTE variables anyway . Lacking a solution for that it doesn ' t seem worth the work to do more than have this list which must be kept in sync with the variables actually marked GUC_LIST_QUOTE in guc . c .
bool
variable_is_guc_list_quote(const char *name)
{
	if (pg_strcasecmp(name, "local_preload_libraries") == 0 ||
		pg_strcasecmp(name, "search_path") == 0 ||
		pg_strcasecmp(name, "session_preload_libraries") == 0 ||
		pg_strcasecmp(name, "shared_preload_libraries") == 0 ||
		pg_strcasecmp(name, "temp_tablespaces") == 0 ||
		pg_strcasecmp(name, "unix_socket_directories") == 0)
		return true;
	else
		return false;
}
bool variable_is_guc_list_quote ( const char * name ) { if ( pg_strcasecmp ( name , " " ) == 0 || pg_strcasecmp ( name , " " ) == 0 || pg_strcasecmp ( name , " " ) == 0 || pg_strcasecmp ( name , " " ) == 0 || pg_strcasecmp ( name , " " ) == 0 || pg_strcasecmp ( name , " " ) == 0 ) return true ; else return false ; }
Detect whether the given GUC variable is of GUC_LIST_QUOTE type.
Detect whether the given GUC variable is of GUC_LIST_QUOTE type .