Re: Extra files in "base" dir not seen in relfilenodes

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Extra files in "base" dir not seen in relfilenodes
Дата
Msg-id 20180117172301.spk23j2tj6pq3qdo@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: Extra files in "base" dir not seen in relfilenodes  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Extra files in "base" dir not seen in relfilenodes
Список pgsql-general
Tom Lane wrote:

> However, assuming you've gotten that detail right, then any file
> you can't match up with a relfilenode value must be an orphan you
> can just "rm".

Maybe look in pg_buffercache for entries referencing those files before
deleting.  It would be surprising to see any if no catalog points to
those files, but who knows ...  If you break checkpointing, you're not
going to be pleased.

If it turns out that a shared buffer exists for any of those files, what
would be a way to evict them without pain?

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: ERROR: unexpected chunk number 0 (expected 1) for toast value 76753264 in pg_toast_10920100
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Extra files in "base" dir not seen in relfilenodes