Extra files in "base" dir not seen in relfilenodes

Поиск
Список
Период
Сортировка
От Daniel Farina
Тема Extra files in "base" dir not seen in relfilenodes
Дата
Msg-id CACN56+N6XNATLAzQiQk0N2E6HehGgkNi+dyTgNBv+uGnoLUXiw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Extra files in "base" dir not seen in relfilenodes  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I am looking at a database with a wide (~500G) divergence between the total space expended by the database directory and the result of select sum(pg_relation_size(oid)) from pg_class;.

I located about 280G of apparent extra space by performing an anti-join between files on disk and files in the catalog via the pg_class.relfilenode field.

What should I do to get rid of the data, if it is, in fact, "extra"? Is there a reasonable bug report to file? Can I independently compute the entire itemization of files that belong in the data directory?

The cluster was pg_upgrade'd, in link mode, a while ago, to 10.1 from 9.6. This is not necessarily relevant, though.
 
Thanks,
Daniel

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

Предыдущее
От: George Neuner
Дата:
Сообщение: Re: SSD filesystem aligned to DBMS
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Extra files in "base" dir not seen in relfilenodes