
Cuando actualicé mi versión de Fedora 15 a 16 se me presentó un problema:
Mis bases de datos no funcionaban normalmente, no iniciaba el servicio de postgres por lo que consulte el error y les presento la solución:
1.- Verificar el path donde se almacenaban las bases de datos anteriores y posicionarnos en dicho path, en mi caso es el siguiente:
dijo:cd /var/lib/pgsql
2.- Nos cambiamos de usuario a usuario "postgres".
dijo:su - postgres
3.- Dentro de esta carpeta se encuentran las bases de datos por lo que necesitamos renombrar la carpeta "data" a "data.old" (no importa el nombre), cambiar el propietario de la misma y crear una carpeta "data"
dijo:mv data data.old
dijo:chown postgres data.old
dijo:mkdir data
4.- creamos un nuevo cluster del nuevo motor de BD
dijo:
$initdb /var/lib/pgsql/data/.
could not change directory to "/home/Usuario"
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.
The database cluster will be initialized with locale es_ES.utf8.
The default database encoding has accordingly been set to UTF8.
The default text search configuration will be set to "spanish".
fixing permissions on existing directory /var/lib/pgsql/data ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 24MB
creating configuration files ... ok
creating template1 database in /var/lib/pgsql/data/base/1 ... ok
initializing pg_authid ... ok
initializing dependencies ... ok
creating system views ... ok
loading system objects' descriptions ... ok
creating collations ... ok
creating conversions ... ok
creating dictionaries ... ok
setting privileges on built-in objects ... ok
creating information schema ... ok
loading PL/pgSQL server-side language ... ok
vacuuming database template1 ... ok
copying template1 to template0 ... ok
copying template1 to postgres ... ok
WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the -A option the
next time you run initdb.
Success. You can now start the database server using:
postgres -D /var/lib/pgsql/data
or
pg_ctl -D /var/lib/pgsql/data -l logfile start
5.- Iniciamos el servicio de Postgres
dijo:service postgresql start
Además de eso necesitamos configurar las conexiones remotas para que se puedan conectar a la base de datos.
Esto lo realizamos en 2 archivos de configuración ubicados en la misma carpeta "data" en la que creamos el nuevo cluster.
El primer archivo es el postgres.conf donde configuramos las conexiones permitidas:
dijo:
#------------------------------------------------------------------------------
# CONNECTIONS AND AUTHENTICATION
#------------------------------------------------------------------------------
# - Connection Settings -
//aqui eliminamos el '#' para descomentar la línea y cambiamos el "localhost" por "*" en el caso de aceptar //cualquier dirección para conexión
listen_addresses = '*' # what IP address(es) to listen on;
# comma-separated list of addresses;
# defaults to 'localhost', '*' = all
//descomentamos el puerto # (change requires restart)
port = 5432 # (change requires restart)
max_connections = 100 # (change requires restart)
# Note: Increasing max_connections costs ~400 bytes of shared memory per
# connection slot, plus lock space (see max_locks_per_transaction).
#superuser_reserved_connections = 3 # (change requires restart)
#unix_socket_directory = '' # (change requires restart)
#unix_socket_group = '' # (change requires restart)
#unix_socket_permissions = 0777 # begin with 0 to use octal notation
# (change requires restart)
#bonjour = off # advertise server via Bonjour
# (change requires restart)
#bonjour_name = '' # defaults to the computer name
# (change requires restart)
# - Security and Authentication -
#authentication_timeout = 1min # 1s-600s
#ssl = off # (change requires restart)
#ssl_ciphers = 'ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH' # allowed SSL ciphers
# (change requires restart)
#ssl_renegotiation_limit = 512MB # amount of data between renegotiations
password_encryption = on Descomentamos la encriptación de contraseña
El segundo archivo es el "pg_hba.conf" en donde cambiamos al final del archivo:
dijo:
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all md5
# IPv4 local connections:
host all all 0.0.0.0/0 md5 //cambiamos la ip de localhost por todas las redes y
# IPv6 local connections: //el método de autentificación de "trust" a "md5"
host all all ::1/128 md5
Por ultimo reiniciamos el servicio y listo.
dijo:service postgresql restart
espero Que a Alguien le sirva estos datos, se puede utilizar el programa pg_upgrade para migrar las bases de datos anteriores pero se necesita el directorio /var/lib/pgsql/bin el cual no se porque no lo tengo

por lo que voy a restaurar las bases de datos con unos backup que tengo jeje 
Eso es todo... espero que le sirva a alguien.
saludos
rcarlos