Thread: Postmaster starting error

Postmaster starting error

From
Rahul Ravindrudu
Date:
Hi,
   I have downloaded the postgres version 6.5.3 . My m/c is redhat linux 6.0.
   Postgres compiles without any error. I then initialize the database using
   initdb. But when i start the postmaster i get the following error message.


Database system in directory /tmp/pgsql/data is not compatible with this version of Postgres, or we are unable to read
thePG_VERSION file.  Explanation from ValidatePgVersion: Version number in file '/tmp/pgsql/data/PG_VERSION' should be
6.4,not 6.5. 

No data directory -- can't proceed.


    Can anyone explain why?

   --
   Rahul Ravindrudu

   --------------------------------------------------------------------
   Rahul Ravindrudu
   4th Yr B.Tech
   CSE Dept, IIT Bombay
   Mumbai, India 400076
   --------------------------------------------------------------------

Re: [GENERAL] Postmaster starting error

From
"Oliver Elphick"
Date:
Rahul Ravindrudu wrote:
  >
  >Hi,
  >   I have downloaded the postgres version 6.5.3 . My m/c is redhat linux 6.0
      >.
  >   Postgres compiles without any error. I then initialize the database using
  >   initdb. But when i start the postmaster i get the following error message
      >.
  >
  >
  >Database system in directory /tmp/pgsql/data is not compatible with this ver
      >sion of Postgres, or we are unable to read the PG_VERSION file.  Explana
      >tion from ValidatePgVersion: Version number in file '/tmp/pgsql/data/PG_
      >VERSION' should be 6.4, not 6.5.
  >
  >No data directory -- can't proceed.
  >
  >
  >    Can anyone explain why?

Perhaps you have a 6.4 version still on your machine, that is being run
instead of your new version?

--
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight                              http://www.lfix.co.uk/oliver
               PGP key from public servers; key ID 32B8FAA1
                 ========================================
     "Blessed are the pure in heart, for they shall see
      God."                    Matthew 5:8



Re: [GENERAL] Postmaster starting error

From
Rahul Ravindrudu
Date:
On Fri, Jan 07, 2000 at 07:20:50AM +0000, Oliver Elphick wrote:
 Rahul Ravindrudu wrote:
  >
  >Hi,
  >   I have downloaded the postgres version 6.5.3 . My m/c is redhat linux 6.0
  >   Postgres compiles without any error. I then initialize the database using
  >   initdb. But when i start the postmaster i get the following error message
      >.
  >
  >
  >Database system in directory /tmp/pgsql/data is not compatible with this ver
      >sion of Postgres, or we are unable to read the PG_VERSION file.  Explana
      >tion from ValidatePgVersion: Version number in file '/tmp/pgsql/data/PG_
      >VERSION' should be 6.4, not 6.5.
  >
  >No data directory -- can't proceed.
  >
  >
  >    Can anyone explain why?

 Perhaps you have a 6.4 version still on your machine, that is being run
 instead of your new version?

 This is the first time I am using postgres.

 --
 Rahul Ravindrudu

Re: [GENERAL] Postmaster starting error

From
Lamar Owen
Date:
Rahul Ravindrudu wrote:
>
> Hi,
>    I have downloaded the postgres version 6.5.3 . My m/c is redhat linux 6.0.
[snip]
Explanation from ValidatePgVersion: Version number in file
'/tmp/pgsql/data/PG_VERSION' should be 6.4, not 6.5.

The PostgreSQL 6.4.2 RPMs that were shipped with RedHat 6.0 are still
installed.  Run 'rpm -qa|grep postgresql' -- then, run 'rpm -e' on all
the postgresql RPM's that -qa reported.

The tarball version and the RPM version do not like each other,
primarily due to the fact that the RPM version places postmaster in
/usr/bin -- if you set your PATH to search the tarball installation's
bin directory BEFORE /usr/bin, then things will settle down -- but it's
best to uninstall the 6.4.2 RPM's first.  Or, you can fully qualify the
path for postmaster (/usr/local/pgsql/bin/postmaster, or whereever you
have it installed).

--
Lamar Owen
WGCR Internet Radio
1 Peter 4:11




Or, you can upgrade to the 6.5.3 RPM's.