Re: [GENERAL] Can't restart Postgres - Mailing list pgsql-general

From Magnus Hagander
Subject Re: [GENERAL] Can't restart Postgres
Date
Msg-id CABUevEyetPXbnd8icJxWV=quCMWUD0PCRYQXQAj7dnaP3z0jDA@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] Can't restart Postgres  (Shawn Thomas <thomassd@u.washington.edu>)
Responses Re: [GENERAL] Can't restart Postgres  (Shawn Thomas <thomassd@u.washington.edu>)
List pgsql-general
On Wed, Feb 15, 2017 at 6:28 PM, Shawn Thomas <thomassd@u.washington.edu> wrote:
Well that would make more sense of things.  I had removed and re-installed the postresql-common package:


and thought that it would leave the main PG package in place.  But perhaps I was wrong.  I’ll follow Tom’s advice and just re-install everything (saving the old data directory) and hope the new installation can use the old data data directory.

If you removed it and then installed it, then the removal would remove all dependent packages and if you then only intalled that one and not the dependencies that would explain it.

If you had run a reinstall on it, then it would've kept them around.

 
One question about this approach though:  the Debian package installation automatically initializes the new data directory and starts PG.  If I shut it down and copy the old data directory into the newly installed one, will there be an xlog issue?

You have to copy the xlog along with the database.

Or if you leave it in place where it is, the packages won't initialize a new data directory.

--

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: [GENERAL] Can't restart Postgres
Next
From: Shawn Thomas
Date:
Subject: Re: [GENERAL] Can't restart Postgres