Skip site navigation (1) Skip section navigation (2)

Re: Data directory destroyed

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: Leandro Fanzone <leandro(at)hasar(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Data directory destroyed
Date: 2001-01-23 14:56:45
Message-ID: 200101231456.f0NEunq26058@linda.lfix.co.uk (view raw or flat)
Thread:
Lists: pgsql-novice
Leandro Fanzone wrote:
  >Due to a problem with the filesystem, my "data" directory was thrashed.
  >I had to remove it completely. Now the postmaster doesn't start. How do
  >I recreate the data directory? I have the dumps for psql to create the
  >databases, but I need postmaster running. What can I do?


Run initdb to create the database structure.  The postmaster needs the
database to exist before it can start.

-- 
Oliver Elphick                                Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight                              http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47  6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "Look not every man on his own interests, but every man
      also on the things of others. Let this mind be in you,
      which was also in Christ Jesus"             
                                Philippians 2:4,5 



pgsql-novice by date

Next:From: Leandro FanzoneDate: 2001-01-23 18:14:28
Subject: Shared memory problem
Previous:From: Brett W. McCoyDate: 2001-01-23 14:18:20
Subject: Re: Data directory destroyed

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group