src/bin/pg_dump/dumputils.c
void
buildShSecLabelQuery(const char *catalog_name, Oid objectId,
					 PQExpBuffer sql)
{
	appendPQExpBuffer(sql,
					  "SELECT provider, label FROM pg_catalog.pg_shseclabel "
					  "WHERE classoid = 'pg_catalog.%s'::pg_catalog.regclass "
					  "AND objoid = '%u'", catalog_name, objectId);
}
/*
 * buildShSecLabelQuery
 *
 * Build a query to retrieve security labels for a shared object.
 * The object is identified by its OID plus the name of the catalog
 * it can be found in (e.g., "pg_database" for database names).
 * The query is appended to "sql".  (We don't execute it here so as to
 * keep this file free of assumptions about how to deal with SQL errors.)
 */
buildShSecLabelQuery
Build a query to retrieve security labels for a shared object.
The object is identified by its OID plus the name of the catalog
it can be found in .
The query is appended to "sql".  (We don't execute it here so as to
keep this file free of assumptions about how to deal with SQL errors.)
buildShSecLabelQuery Build a query to retrieve security labels for a shared object . The object is identified by its OID plus the name of the catalog it can be found in . The query is appended to " sql " . ( We don ' t execute it here so as to keep this file free of assumptions about how to deal with SQL errors . )
void
buildShSecLabelQuery(const char *catalog_name, Oid objectId,
					 PQExpBuffer sql)
{
	appendPQExpBuffer(sql,
					  "SELECT provider, label FROM pg_catalog.pg_shseclabel "
					  "WHERE classoid = 'pg_catalog.%s'::pg_catalog.regclass "
					  "AND objoid = '%u'", catalog_name, objectId);
}
void buildShSecLabelQuery ( const char * catalog_name , Oid objectId , PQExpBuffer sql ) { appendPQExpBuffer ( sql , " " " " " " , catalog_name , objectId ) ; }
buildShSecLabelQuery
 Build a query to retrieve security labels for a shared object.
buildShSecLabelQuery Build a query to retrieve security labels for a shared object .