Neil Conway <nconway(at)klamath(dot)dyndns(dot)org> writes:
> Also, I needed some utility code to find the name of a relation, given
> its OID.
get_rel_name in utils/cache/lsyscache.c.
> I find a suitable utility function in
> src/backend/utils/adt/ruleutils.c -- however, it's a static function.
Oh? Looks like someone forgot about lsyscache ...
In general, lsyscache is the place for quick and dirty little catalog
access functions like this.
regards, tom lane