Re: ALTER TABLE OWNER: change indexes

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Neil Conway <nconway(at)klamath(dot)dyndns(dot)org>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: ALTER TABLE OWNER: change indexes
Date: 2002-02-24 21:35:49
Message-ID: 12349.1014586549@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

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

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Neil Conway 2002-02-24 22:04:34 Re: ALTER TABLE OWNER: change indexes
Previous Message Neil Conway 2002-02-24 21:22:58 oid2name cleanup