Estimados: Ya hice el pg_dumpall como lo señaló Alvaro.
"/usr/pgsql-9.1/bin/pg_dumpall -v -h 192.168.159.140 -p 5432 > dumpall_bd.sql" ...y posteriormente hice lo siguiente: "When I restore from a pg_dumpall file, I am required to peform the following steps or else all the records in the databses are duplicated. If I only empty the data/base folder I get al sorts of errors. I find in necessary to wipe the entire data folder and rebuild it with initdb. Is there a better way to restore using a pg_dumpall file then doing all these steps: * stop postmaster service * delete everything in the data folder (var/lib/pgsql/data) * as postgres user run initdb * exit postgres user * psql -U postgres -f pg_dumpall_file postgres" ...pero al realizar el initdb, me sale el siguiente error: service postgresql-9.1 initdb Initializing database: [FAILED] bash-3.2$ vi pgstartup.log Success. You can now start the database server using: /usr/pgsql-9.1/bin/postgres -D /var/lib/pgsql/9.1/data or /usr/pgsql-9.1/bin/pg_ctl -D /var/lib/pgsql/9.1/data -l logfile start FATAL: invalid value for parameter "TimeZone": "(defaults to server environment setting)" runuser: cannot set groups: Operation not permitted runuser: cannot set groups: Operation not permitted Saludos Cordiales Mario Soto Cordones| Por favor antes de Imprimir éste correo, piense en los árboles de nuestro planeta. " Estamos tan acostumbrados a pedir felicidad, exito y fortuna, que nos olvidamos de pedir lo mas importante: humildad, fortaleza, y sinceridad. (Autor Desconocido) -----Mensaje original----- De: Alvaro Herrera [mailto:alvhe...@2ndquadrant.com] Enviado el: miércoles, 10 de abril de 2013 11:50 Para: Mario Soto Cordones CC: 'Ayuda'; 'Jaime Casanova'; 'Martín Marqués' Asunto: Re: [pgsql-es-ayuda] Consulta Migrar a 9.1 Mario Soto Cordones escribió: > Estimados: > > Al tratar de crear la base de datos con encode SQL_ASCII en la nueva > bd 9.1 me sale el error : > > New encoding "SQL_ASCII" is incompatible wirh the encoding of the > template database (UTF8)... que debo hacer!!!! Si mal no recuerdo tienes que usar template0. -- Álvaro Herrera http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services - Enviado a la lista de correo pgsql-es-ayuda (pgsql-es-ayuda@postgresql.org) Para cambiar tu suscripción: http://www.postgresql.org/mailpref/pgsql-es-ayuda