Re: oid2name and relfilenode

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: oid2name and relfilenode
Дата
Msg-id 18457.1034715640@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: oid2name and relfilenode  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: oid2name and relfilenode  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> 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 tool and not something
users or DBAs really want as-is --- which I guess is another way of
stating Peter's gripe that what it produces is not what the users want
to know.  The actual useful guts of it are nothing more thanSELECT oid, datname FROM pg_database;SELECT relfilenode,
relnameFROM pg_class;
 
which does not seem significant enough to justify the packaging and
documentation overhead of having another command-line tool.

The only actual use-case I've seen for it so far is as a vehicle for
computing actual database sizes on-disk; which would be better served
by a tool that did the whole job.  What other uses do people have for
oid2name?
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: droped out precise time calculations in src/interfaces/libpq/fe-connect.c
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: oid2name and relfilenode