Re: [HACKERS] Numeric file names

2000-10-28 Thread Vadim Mikheev
> > Now that we have numeric file names, I would like to have a command I > > can run from psql that will dump a mapping of numeric file name to table > > name, i.e., > > > > 121233 pg_proc > > 143423 pg_index > > select oid, relname from pg_class; No. select relfilenode, relname from pg_class -

Re: [HACKERS] Numeric file names

2000-10-28 Thread Bruce Momjian
> Bruce Momjian writes: > > > Now that we have numeric file names, I would like to have a command I > > can run from psql that will dump a mapping of numeric file name to table > > name, i.e., > > > > 121233 pg_proc > > 143423 pg_index > > select oid, relname from pg_class; Oh, we we

Re: [HACKERS] Numeric file names

2000-10-28 Thread Bruce Momjian
> > With that feature, I can write scripts pgfile2name and pgname2file that > > map file names to table names. People can run standard Unix commands > > and have meaningful display output: > > > > ls -l | pgfile2name > > sed `psql -Aqt -d ${database} -c "select'-e s/' || oid || '/' || relna

Re: [HACKERS] Numeric file names

2000-10-28 Thread Peter Eisentraut
Bruce Momjian writes: > Now that we have numeric file names, I would like to have a command I > can run from psql that will dump a mapping of numeric file name to table > name, i.e., > > 121233 pg_proc > 143423 pg_index select oid, relname from pg_class; > With that feature, I ca

[HACKERS] Numeric file names

2000-10-28 Thread Bruce Momjian
Now that we have numeric file names, I would like to have a command I can run from psql that will dump a mapping of numeric file name to table name, i.e., 121233 pg_proc 143423 pg_index With that feature, I can write scripts pgfile2name and pgname2file that map file names to t