powered by simpleCommunicator - 2.0.54     © 2025 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / PostgreSQL [игнор отключен] [закрыт для гостей] / Пропали данные
2 сообщений из 2, страница 1 из 1
Пропали данные
    #39375730
Володя7033
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Здравствуйте.

Возникла такая проблема - есть база Postgresql 8.3, win 7 x32. Все работало нормально годами, и вдруг пропали все данные. Смотрю в pgAdmin - структура базы целая, все таблицы на месте, вроде бы все функции и вьюшки тоже. А открываю любую таблицу на просмотр - она пустая. Таблиц 30 штук, и все пустые. Пользователь говорит, что "глючила дата, мне надоело, и я решила перезагрузить компьютер. После чего все пропало". Вроде бы нашел каталог с данной базой в data\base, его размер ~30Мб. Пробовал переиндексировать - не помогает, а размер каталога падает до ~6Мб. В каталоге pg_xlog - 8 файлов. В каталоге pg_log - 2 лога за этот период

2016-12-26 07:41:13 MSK LOG: loaded library "$libdir/plugins/plugin_debugger.dll"
2016-12-26 12:47:20 MSK LOG: loaded library "$libdir/plugins/plugin_debugger.dll"
2016-12-26 14:06:15 MSK LOG: received fast shutdown request
2016-12-26 14:06:15 MSK LOG: aborting any active transactions
2016-12-26 14:06:15 MSK FATAL: terminating connection due to administrator command
2016-12-26 14:06:15 MSK LOG: autovacuum launcher shutting down




2016-12-26 14:07:14 MSK LOG: database system was interrupted; last known up at 2016-12-26 13:55:09 MSK
2016-12-26 14:07:14 MSK LOG: database system was not properly shut down; automatic recovery in progress
2016-12-26 14:07:14 MSK LOG: loaded library "$libdir/plugins/plugin_debugger.dll"
2016-12-26 14:07:14 MSK FATAL: the database system is starting up
2016-12-26 14:07:14 MSK LOG: redo starts at 0/18EE9D68
2016-12-26 14:07:14 MSK LOG: record with zero length at 0/18EFB678
2016-12-26 14:07:14 MSK LOG: redo done at 0/18EFB648
2016-12-26 14:07:14 MSK LOG: last completed transaction was at log time 2016-12-26 13:59:33.387+03
2016-12-26 14:07:15 MSK LOG: database system is ready to accept connections
2016-12-26 14:07:15 MSK LOG: autovacuum launcher started
2016-12-26 14:07:15 MSK LOG: loaded library "$libdir/plugins/plugin_debugger.dll"
2016-12-26 14:09:14 MSK LOG: loaded library "$libdir/plugins/plugin_debugger.dll"
2016-12-26 14:14:31 MSK LOG: checkpoints are occurring too frequently (2 seconds apart)
2016-12-26 14:14:31 MSK HINT: Consider increasing the configuration parameter "checkpoint_segments".
2016-12-26 14:14:32 MSK LOG: checkpoints are occurring too frequently (1 seconds apart)
2016-12-26 14:14:32 MSK HINT: Consider increasing the configuration parameter "checkpoint_segments".
2016-12-26 14:14:44 MSK LOG: loaded library "$libdir/plugins/plugin_debugger.dll"
2016-12-26 14:15:04 MSK LOG: could not receive data from client: No connection could be made because the target machine actively refused it.

2016-12-26 14:15:04 MSK LOG: unexpected EOF on client connection
2016-12-26 14:15:08 MSK LOG: received fast shutdown request
2016-12-26 14:15:08 MSK LOG: aborting any active transactions
2016-12-26 14:15:08 MSK LOG: autovacuum launcher shutting down
2016-12-26 14:15:13 MSK LOG: shutting down
2016-12-26 14:15:13 MSK LOG: database system is shut down



С Postgresql я знаком поскольку-постольку, где еще можно покопать - без идей. Можно ли как-то восстановить данные, или уже нет? Уж очень не хотелось бы восстанавливать из бэкапа, которому больше месяца. Заранее благодарен за советы.
...
Рейтинг: 0 / 0
Пропали данные
    #39376122
Andrew B.
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Володя7033,

Сделайте копию в отдельном месте и попробуйте https://github.com/omniti-labs/pgtreats/tree/master/contrib/pg_dirtyread
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / PostgreSQL [игнор отключен] [закрыт для гостей] / Пропали данные
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]