On Sun, 2002-02-24 at 16:35, Tom Lane wrote:
> Neil Conway <nconway@klamath.dyndns.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.
Thanks Tom.
> > 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 ...
I've attached a new version of the patch that uses get_rel_name() -- I
also removed get_relation_name() from ruleutils.c and changed that file
to use get_rel_name().
Cheers,
Neil
--
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC