Pessoal, boa tarde. Estou tentando reiniciar o server Postgres e tenho o
seguinte cenário:
1. Como root verifiquei se o serviço estava executando => shell$ service
postgres status => service: no such service postgres, procurei pelo
service postmaster e tive a mesma resposta do shell.
2. shell$ su - postgres
3. shell$ initdb --pgdata=/var/lib/pgsql/data => resposta shell: 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 en_US.UTF-8.
The default database encoding has accordingly been set to UTF8.
The default text search configuration will be set to "english".
initdb: directory "/var/lib/pgsql/data" exists but is not empty
If you want to create a new database system, either remove or empty
the directory "/var/lib/pgsql/data" or run initdb
with an argument other than "/var/lib/pgsql/data".
4. Entendí que preciso apagar o diretório "/var/lib/pgsql/data" mas não
sei se estarei fazendo a coisa certa, ou seja, existe algo nesse diretório
que não deve ser apagado? Ou eu devo logar com um usuário do sistema
operacional cujo alias é postgres?
Enfim eu só quero reiniciar o servidor, o que devo fazer? Obrigado
pela atenção de todos, estou usando Postgres 9.x no S.O. linux Suse.
--
Tarcísio Martins Ferreira -
Analista Desenvolvedor de Sistemas Sênior -
Bacharel em Ciência da Computação -
UFU - Universidade Federal de Uberlândia <http://www.ufu.br>
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral