oid2name

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: oid2name
Date: 2004-09-12 22:16:27
Message-ID: 20040912221627.GA9193@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hackers,

I am in the process of fixing the oid2name contrib module. It needs a
lot of care and feeding. Hopefully for the next release we can move it
to src/bin/scripts so it can use the routines that are in common.c, and
some of the ugliness can go.

I think it will stay in contrib for 8.0 however, so it needs to be fixed
now. While I was playing with it, I noticed several shortcomings:

- it only works in the PUBLIC schema
- it only knows about tables and databases, except when running in "show
systables" mode, and then it will show all indexes, toast tables, etc
- it only displays relfilenode and tablename
- there's no way to query by relfilenode, only by Oid (note that the
last two means the program is somewhat inconsistent)

This last one IMHO makes the program somewhat useless, because what the
user normally wants to know is what table does a certain file on disk
belong to, and the Oid may not provide that.

I want to fix this, by providing switches to allow querying by filenode,
Oid and tablename; and to show not only filenode and name, but also
schema and tablespace.

Is this acceptable for this release? Other opinions?

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"This is a foot just waiting to be shot" (Andrew Dunstan)

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-09-12 22:23:22 Re: beta1 & beta2 & Windows & heavy load
Previous Message Bruce Momjian 2004-09-12 22:14:15 Re: pgindent vs try/catch