Re: ALTER TABLE OWNER: change indexes - Mailing list pgsql-patches

From Tom Lane
Subject Re: ALTER TABLE OWNER: change indexes
Date
Msg-id 12349.1014586549@sss.pgh.pa.us
Whole thread Raw
In response to ALTER TABLE OWNER: change indexes  (Neil Conway <nconway@klamath.dyndns.org>)
Responses Re: ALTER TABLE OWNER: change indexes
List pgsql-patches
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.

> 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

pgsql-patches by date:

Previous
From: Neil Conway
Date:
Subject: oid2name cleanup
Next
From: Neil Conway
Date:
Subject: Re: ALTER TABLE OWNER: change indexes