добрый день уважаемые знатоки) посыпался жесткий диск, в результате пришлось сервак переконфигурировать на другом, сервак работает, но вот дамп подгрузить со старых бэкапов не удается( помогите разобраться в чем может быть проблема,
делаю так
su - postgres
psql
CREATE DATABASE base OWNER postgres;
GRANT ALL PRIVILEGES ON DATABASE base to postgres;
psql -l
List of databases
Name | Owner | Encoding | Collation | Ctype | Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
base | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 | =Tc/postgres
: postgres=CTc/postgres
postgres | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 |
template0 | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 | =c/postgres
: postgres=CTc/postgres
template1 | postgres | UTF8 | ru_RU.UTF-8 | ru_RU.UTF-8 | =c/postgres
: postgres=CTc/postgres
(4 rows)
psql base < backup
nvalid command \��59�H
invalid command \B��U~G▒�B���@�˘��
invalid command \��J枎0�_F���#���Vg���O����}�oOC���N
invalid command \�ʕ���tV�0=IY2
�*7%��]�hIS=I�j
invalid command \�눦������ژ����pg��O]��w�5�
invalid command \*yqۉ<ϰFz�
invalid command \�N�H�]�t7aQ��1�1,������^▒�R���4�2dtAFw��
invalid command \�Ao
ERROR: invalid byte sequence for encoding "UTF8": 0xdcc5
ПОДСКАЗКА: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding".
pg_restore -C -d postgres backup
_restore: [archiver (db)] Error from TOC entry 8537; 1259 456809 TABLE _accumrgt10887 postgres
pg_restore: [archiver (db)] could not execute query: ERROR: relation "_accumrgt10887" already exists
Command was: CREATE TABLE _accumrgt10887 (
_period timestamp without time zone NOT NULL,
локаль впорядке
locale -a | grep en_US
en_US
en_US.iso88591
en_US.utf8
через рута pg_restore -d base /home/sagvir/1C_backup/09-10-2013-base.backup
pg_restore: [archiver (db)] connection to database "base" failed: FATAL: Ident authentication failed for user "root"
подозреваю что чтото с локалью, но вроде все стоит, раньше так и накатывал дамп..
ОШИБКА: неверная последовательность байт для кодировки "UTF8": 0xdcc5