Обсуждение: Cannot start PGSQL

Поиск
Список
Период
Сортировка

Cannot start PGSQL

От
smp
Дата:
I'm a novice & I'm trying to start posgtres by doing /etc/init.d/postgresql start.
 
It starts.
But the next min if i try to check the process by doing ps -auwx | grep post, I dont see any process.
 
My installation is in /var/lib/pgsql/data.
 
There is nothing in serverlog.
 
What can be the reason?
 
How do i enable logging to serverlog
 
Tnx & regards,
Sachin


Save all your chat conversations. Find them online.

Re: Cannot start PGSQL

От
Devrim GÜNDÜZ
Дата:
Hi,

On Thu, 2008-03-20 at 10:07 +0530, smp wrote:
>
> There is nothing in serverlog.
>
> What can be the reason?

Check /var/lib/pgsql/pgstartup.log , if it exists.

Regards,
--
Devrim GÜNDÜZ , RHCE
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/

Вложения

Re: Cannot start PGSQL

От
smp
Дата:
i get message as below
 
FATAL:  database files are incompatible with server
DETAIL:  The database cluster was initialized with PG_CONTROL_VERSION 71, but the server was compiled with PG_CONTROL_VERSION 812.
HINT:  It looks like you need to initdb.



 
----- Original Message ----
From: Devrim GÜNDÜZ <devrim@CommandPrompt.com>
To: smp <smp762001@yahoo.co.in>
Cc: pgsql-admin@postgresql.org
Sent: Thursday, 20 March, 2008 10:19:06 AM
Subject: Re: [ADMIN] Cannot start PGSQL

Hi,

On Thu, 2008-03-20 at 10:07 +0530, smp wrote:
>
> There is nothing in serverlog.
>
> What can be the reason?

Check /var/lib/pgsql/pgstartup.log , if it exists.

Regards,
--
Devrim GÜNDÜZ , RHCE
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/



5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.

Re: Cannot start PGSQL

От
Devrim GÜNDÜZ
Дата:
Hi,

On Thu, 2008-03-20 at 10:54 +0530, smp wrote:

> FATAL:  database files are incompatible with server
> DETAIL:  The database cluster was initialized with PG_CONTROL_VERSION
> 71, but the server was compiled with PG_CONTROL_VERSION 812.
> HINT:  It looks like you need to initdb.

You have an old (7.1) version installed on that directory. If you took
backups, you need to remove /var/lib/pgsql/data directory, recreate it
with postgres user, and initdb that directory before you can start
PostgreSQL.

Probably:

service postgresql initdb
service postgresql start

will do the work for you.

Regards,

Regards,
--
Devrim GÜNDÜZ , RHCE
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, ODBCng - http://www.commandprompt.com/

Вложения