| От | Tom Lane |
|---|---|
| Тема | Re: Extra files in "base" dir not seen in relfilenodes |
| Дата | |
| Msg-id | 794.1516143838@sss.pgh.pa.us обсуждение |
| Ответ на | Extra files in "base" dir not seen in relfilenodes (Daniel Farina <daniel@fdr.io>) |
| Ответы |
Re: Extra files in "base" dir not seen in relfilenodes
|
| Список | pgsql-general |
Daniel Farina <daniel@fdr.io> writes:
> 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;.
Odd.
> 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.
Umm ... are you accounting for catalogs that have zeroes in
pg_class.relfilenode? It's generally better to rely on the
pg_relation_filenode(oid) function than the raw column contents.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера