| От | Tom Lane |
|---|---|
| Тема | Re: Can't drop tablespace or user after disk gone |
| Дата | |
| Msg-id | 22928.1175705833@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Can't drop tablespace or user after disk gone ("Craig A. James" <cjames@modgraph-usa.com>) |
| Список | pgsql-performance |
"Craig A. James" <cjames@modgraph-usa.com> writes:
> I had a 'scratch' database for testing, which I deleted, and then disk went out. No problem, no precious data. But
nowI can't drop the tablespace, or the user who had that as the default tablespace.
> I thought about removing the tablespace from pg_tablespaces, but it seems wrong to be monkeying with the system
tables. I still can't drop the user, and can't drop the tablespace. What's the right way to clear out Postgres when a
diskfails and there's no reason to repair the disk?
Probably best to make a dummy postgres-owned directory somewhere and
repoint the symlink at it, then DROP TABLESPACE.
CVS HEAD has recently been tweaked to be more forgiving of such cases...
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера