linux - You database files were created by PostgreSQL 9.0- could not find executables for this version -


i attempted update version of postgres-server on opensuse server. there few issues , want revert using version of postgres-server installed before(9.03). i've removed version 9.4 , i've tried starting postgresql server i'm getting error:

your database files created postgresql version 9.0.  not find executables version.  please install postgresql server package version 9.0. 

when run:

rpm -qa | grep postgresql 

it shows:

postgresql-docs-9.0.3-1.6.1.noarch postgresql-server-9.0.3-1.6.1.x86_64 postgresql-contrib-9.0.3-1.6.1.x86_64 postgresql-9.0.3-1.6.1.x86_64 postgresql-devel-9.0.3-1.6.1.x86_64 

so looks version 9.03 installed.

i'm not sure server how , i'm panicking bit. can suggest anything?

edit**

here more info after useful info ronaldhino.

i discovered pg_ctl file in /user/bin/pg_ctl , /data appears previous data directory (i deduced contain pg_hbs.conf , postgresql.conf). result i've run command user postgres:

/usr/bin/pg_ctl start -d /data/ -l /data/pg_log/new_log.txt 

i did message initial saying:

server starting 

it appears server running. however, psql binary file appears missing can't psql database service.

thanks

i seems system can not recognize where's postgresql 9.0 location is.

you should find where's postgresql 9.0's binary file , start server directly.

  1. run command finding where's postgresql 9.0 location

    which postgres

    for example: /usr/local/pgsql/bin/

  2. start server

    sudo /usr/local/pgsql/bin/pg_ctl start -d <<your db dir>> -l /var/log/postgresl.log

good luck!


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -