src/bin/pg_dump/pg_dump.c
static void
dumpType(Archive *fout, const TypeInfo *tyinfo)
{
	DumpOptions *dopt = fout->dopt;

	/* Do nothing in data-only dump */
	if (dopt->dataOnly)
		return;

	/* Dump out in proper style */
	if (tyinfo->typtype == TYPTYPE_BASE)
		dumpBaseType(fout, tyinfo);
	else if (tyinfo->typtype == TYPTYPE_DOMAIN)
		dumpDomain(fout, tyinfo);
	else if (tyinfo->typtype == TYPTYPE_COMPOSITE)
		dumpCompositeType(fout, tyinfo);
	else if (tyinfo->typtype == TYPTYPE_ENUM)
		dumpEnumType(fout, tyinfo);
	else if (tyinfo->typtype == TYPTYPE_RANGE)
		dumpRangeType(fout, tyinfo);
	else if (tyinfo->typtype == TYPTYPE_PSEUDO && !tyinfo->isDefined)
		dumpUndefinedType(fout, tyinfo);
	else
		pg_log_warning("typtype of data type \"%s\" appears to be invalid",
					   tyinfo->dobj.name);
}
/*
 * dumpType
 *	  writes out to fout the queries to recreate a user-defined type
 */
dumpType
writes out to fout the queries to recreate a user-defined type
dumpType writes out to fout the queries to recreate a user - defined type
static void
dumpType(Archive *fout, const TypeInfo *tyinfo)
{
	DumpOptions *dopt = fout->dopt;
	if (dopt->dataOnly)
		return;
	if (tyinfo->typtype == TYPTYPE_BASE)
		dumpBaseType(fout, tyinfo);
	else if (tyinfo->typtype == TYPTYPE_DOMAIN)
		dumpDomain(fout, tyinfo);
	else if (tyinfo->typtype == TYPTYPE_COMPOSITE)
		dumpCompositeType(fout, tyinfo);
	else if (tyinfo->typtype == TYPTYPE_ENUM)
		dumpEnumType(fout, tyinfo);
	else if (tyinfo->typtype == TYPTYPE_RANGE)
		dumpRangeType(fout, tyinfo);
	else if (tyinfo->typtype == TYPTYPE_PSEUDO && !tyinfo->isDefined)
		dumpUndefinedType(fout, tyinfo);
	else
		pg_log_warning("typtype of data type \"%s\" appears to be invalid",
					   tyinfo->dobj.name);
}
static void dumpType ( Archive * fout , const TypeInfo * tyinfo ) { DumpOptions * dopt = fout -> dopt ; if ( dopt -> dataOnly ) return ; if ( tyinfo -> typtype == TYPTYPE_BASE ) dumpBaseType ( fout , tyinfo ) ; else if ( tyinfo -> typtype == TYPTYPE_DOMAIN ) dumpDomain ( fout , tyinfo ) ; else if ( tyinfo -> typtype == TYPTYPE_COMPOSITE ) dumpCompositeType ( fout , tyinfo ) ; else if ( tyinfo -> typtype == TYPTYPE_ENUM ) dumpEnumType ( fout , tyinfo ) ; else if ( tyinfo -> typtype == TYPTYPE_RANGE ) dumpRangeType ( fout , tyinfo ) ; else if ( tyinfo -> typtype == TYPTYPE_PSEUDO && ! tyinfo -> isDefined ) dumpUndefinedType ( fout , tyinfo ) ; else pg_log_warning ( " \" \" " , tyinfo -> dobj . name ) ; }
dumpType
        writes out to fout the queries to recreate a user-defined type
dumpType writes out to fout the queries to recreate a user - defined type
/* Do nothing in data-only dump */ /* Dump out in proper style */