Hi, i begin to use this tool and i have one problem restoring backups, maybe is a misconfiguration of my side but i can’t find where change the configuration.
I have one database on PostgreSQL with LATIN1 encoding.
In the backup task i don’t add extra commands on Output SQL Options and the generated SQL have:
–
– PostgreSQL database dump
– Dumped from database version 9.2.23
– Dumped by pg_dump version 11.1
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = ‘LATIN1’;
but when i restore the database the encoding changes to UTF8.
I need that the restored database have the same encoding (LATIN1) that the original one.
How i may achieve that?
Regards.
Hi, is this issue already fixed?
I ask the question because some days ago i restore one database with no errors but one table don’t populate. One table with columns that have characters like Ñ and the length of data was the max length of column. If a try to add manually the data with insert queries from pgadmin appears a warning indicating that the length of data is larger then the length definded for the column.
Regards.
Hi, I updated the software to the latest version and I can’t get the restoration with the correct encoding.
I add as extra parameter --encoding=LATIN1 and make the backup.
I try restore overwriting an existing database with encoding LATIN1 and drop the existing database to create new one; with both options I get encoding UTF8 after restore.
I don’t know if I’m missing something, but I can’t get it to work.
Am I skipping any steps?
I also try create a db from scratch with:
Failed to restore “test_encoding2” database. pg_restore error: pg_restore: error: could not execute query: ERROR: parámetro de configuración no reconocido: «idle_in_transaction_session_timeout»
Command was: SET idle_in_transaction_session_timeout = 0;
pg_restore: error: could not execute query: ERROR: parámetro de configuración no reconocido: «transaction_timeout»
Command was: SET transaction_timeout = 0;
pg_restore: warning: errors ignored on restore: 2
This error can be result of PostgreSQL version older than expected?
I try also restore the backup created by SqlBackuoAndFtp using psql and in thta way works, the econding of database is not changed.
Maybe I’m missing some configuration on restore job?
Regards.