Re: 'SGT DETAIL: Could not open file "pg_clog/05DC": No such file or directory' - what to do now?

Поиск
Список
Период
Сортировка
От Tomasz Chmielewski
Тема Re: 'SGT DETAIL: Could not open file "pg_clog/05DC": No such file or directory' - what to do now?
Дата
Msg-id 4DC1B6C0.2000507@wpkg.org
обсуждение исходный текст
Ответ на Re: 'SGT DETAIL: Could not open file "pg_clog/05DC": No such file or directory' - what to do now?  (Tomasz Chmielewski <mangoo@wpkg.org>)
Ответы Re: 'SGT DETAIL: Could not open file "pg_clog/05DC": No such file or directory' - what to do now?  (Tomasz Chmielewski <tch@wpkg.org>)
Список pgsql-admin
On 04.05.2011 22:13, Tomasz Chmielewski wrote:
> On 04.05.2011 21:50, Scott Marlowe wrote:
>
>> Then another pg_clog file disappeared.

OK, I have:

bookstor=# SELECT * FROM core_wot_seq;
  sequence_name   | last_value | increment_by |      max_value      | min_value | cache_value | log_cnt | is_cycled |
is_called 

------------------+------------+--------------+---------------------+-----------+-------------+---------+-----------+-----------
 core_wot_seq     |       2593 |            1 | 9223372036854775807 |         1 |           1 |       8 | f         | t
(1 row)

bookstor=# SELECT 1 FROM core_wot_seq;
 ?column?
----------
        1
(1 row)

bookstor=# SELECT 1 FROM core_wot_seq FOR UPDATE;
ERROR:  could not access status of transaction 1573786613
DETAIL:  Could not open file "pg_clog/05DC": No such file or directory.


How do I best recover from this? Stop postgres, create an empty, 256k pg_clog/05DC file, start postgres?

Export table, drop table, import table? Anything else?


--
Tomasz Chmielewski
http://wpkg.org

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

Предыдущее
От: Tomasz Chmielewski
Дата:
Сообщение: Re: 'SGT DETAIL: Could not open file "pg_clog/05DC": No such file or directory' - what to do now?
Следующее
От: Dinesh Bhandary
Дата:
Сообщение: worker took too long to start; cancelled ( postgres 9.0.3)