RE: Consulta Migrar a 9.1

From: "Mario Soto Cordones" <marioa(dot)soto(dot)cordones(at)gmail(dot)com>
To: "'Alvaro Herrera'" <alvherre(at)2ndquadrant(dot)com>
Cc: "'Ayuda'" <pgsql-es-ayuda(at)postgresql(dot)org>, "'Jaime Casanova'" <jaime(at)2ndquadrant(dot)com>, 'Martín Marqués' <martin(dot)marques(at)gmail(dot)com>
Subject: RE: Consulta Migrar a 9.1
Date: 2013-04-10 18:05:31
Message-ID: 51659bed.adc7ec0a.1339.64fb@mx.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

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:alvherre(at)2ndquadrant(dot)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(at)postgresql(dot)org)
Para cambiar tu suscripción:
http://www.postgresql.org/mailpref/pgsql-es-ayuda

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Tomas Dome 2013-04-11 00:37:27 Postgresql con Delphi 2010 y Zeoslib
Previous Message Mario Soto Cordones 2013-04-10 16:53:02 RE: Consulta Migrar a 9.1