Re: [HACKERS] oid2name

2004-09-12 Thread Bruce Momjian
Please submit any improvements you can. It certainly needs attention! I think it is inconsistent in using oid for lookup. It was originally written before relfilenode existed (hence the name _oid_2name, while it should be relfilenode to name or something. Maybe when we move it to scripts we c

[HACKERS] oid2name

2004-09-12 Thread Alvaro Herrera
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 howe

Re: [HACKERS] oid2name and relfilenode

2002-10-15 Thread Bruce Momjian
OK, removed from TODO. I figured it was as useful as pg_controldata but can see what you say that those give information that you can't get any other way, while oid2name info can be gotten another way. You can look at the oid2name README for examples of its usage.

Re: [HACKERS] oid2name and relfilenode

2002-10-15 Thread Tom Lane
Bruce Momjian <[EMAIL PROTECTED]> writes: > I will add these items to the TODO list, unless someone else votes. I was not thrilled with the idea of moving oid2name out of contrib either, but kept silent to see if someone else would complain first ... Basically I think that oid2name is a hacker's

Re: [HACKERS] oid2name and relfilenode

2002-10-15 Thread Bruce Momjian
Peter Eisentraut wrote: > Bruce Momjian writes: > > > > Rename oid2name to relfilenode2name and install by default > > > > > > > Actually, to be accurate, I think databases are stored based on their > > oid and tables/indexes are stored based on their relfilenode. That is > > pretty confusing.

Re: [HACKERS] oid2name and relfilenode

2002-10-15 Thread Peter Eisentraut
Bruce Momjian writes: > > Rename oid2name to relfilenode2name and install by default > > > > Actually, to be accurate, I think databases are stored based on their > oid and tables/indexes are stored based on their relfilenode. That is > pretty confusing. Do we still do the renaming? I don'

Re: [HACKERS] oid2name and relfilenode

2002-10-12 Thread Bruce Momjian
Bruce Momjian wrote: > Now that we are changing relfilenode in 7.3, I think we need to rename > oid2name to relfilenode2name, and perhaps move it into the main tree. > > TODO item added: > > Rename oid2name to relfilenode2name and install by default > Actually, to be accurate, I think dat

Re: [HACKERS] oid2name and relfilenode

2002-10-12 Thread Bruce Momjian
Justin Clift wrote: > Bruce Momjian wrote: > > > > Bruce Momjian wrote: > > > Now that we are changing relfilenode in 7.3, I think we need to rename > > > oid2name to relfilenode2name, and perhaps move it into the main tree. > > > > > > TODO item added: > > > > > > Rename oid2name to relfile

Re: [HACKERS] oid2name and relfilenode

2002-10-12 Thread Justin Clift
Bruce Momjian wrote: > > Bruce Momjian wrote: > > Now that we are changing relfilenode in 7.3, I think we need to rename > > oid2name to relfilenode2name, and perhaps move it into the main tree. > > > > TODO item added: > > > > Rename oid2name to relfilenode2name and install by default Shou

[HACKERS] oid2name and relfilenode

2002-10-12 Thread Bruce Momjian
Now that we are changing relfilenode in 7.3, I think we need to rename oid2name to relfilenode2name, and perhaps move it into the main tree. TODO item added: Rename oid2name to relfilenode2name and install by default -- Bruce Momjian| http://candle.pha.pa.us