def get_arg_type(at):
	"""returns type name from type id"""
	cur = db_conn().cursor()
	cur.execute("select pg_catalog.format_type('%s', NULL)" % at)
	row = cur.fetchone()
	return row[0]
returns type name from type id
recipes/Python/576557_Dump_PostgreSQL_db/recipe-576557.py