pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@postgresql.org
Subject: Re: Move cluster to new host, upgraded version
Date: Wed, 14 Nov 2018 07:05:55 -0800
Message-ID: <ea1d8fbe-3d09-6b92-ad12-1a3a59e093a3@aklaver.com> (raw)
In-Reply-To: <alpine.LNX.2.20.1811140652550.26515@salmo.appl-ecosys.com>
References: <alpine.LNX.2.20.1811111118250.28051@salmo.appl-ecosys.com>
	<87wopjv2gu.fsf@news-spur.riddles.org.uk>
	<alpine.LNX.2.20.1811111216260.28051@salmo.appl-ecosys.com>
	<38cdd93b-e0be-ca3b-decd-64072356e6ce@aklaver.com>
	<alpine.LNX.2.20.1811111248390.28051@salmo.appl-ecosys.com>
	<alpine.LNX.2.20.1811111252520.28051@salmo.appl-ecosys.com>
	<alpine.LNX.2.20.1811131546150.19445@salmo.appl-ecosys.com>
	<6048bbde-04a4-3b90-00de-65adf78c8196@aklaver.com>
	<alpine.LNX.2.20.1811140652550.26515@salmo.appl-ecosys.com>

On 11/14/18 6:58 AM, Rich Shepard wrote:
> On Tue, 13 Nov 2018, Adrian Klaver wrote:
> 
>> Just realized the question I should have asked is:
>> How did you get the pg_dumpall file processed by Postgres?
>> In other words how did you do it without a password?
> 
>    As user postgres I entered the command
> $ psql -f dump-all.sql
> 
>    In any case, I need to back up because I missed something when
> initializing the cluster.
> 
>    ps ax | grep postgres
> 
> shows a number of processes, but psql tells me there's no server running,
> and there is no postmaster.opts or postmaster.pid in the data directory.
> 
>    I can delete contents of the data directory and re-initdb, or re-install
> the application and start from scratch.

It was running when you did this:

psql -f dump-all.sql

correct?

Seems to me it is a start up script issue.

Have you rebooted the computer since the last time Postgres ran?

Is there a startup script in init.d/ or where ever your scripts are?

Can you start the server manually using pg_ctl?

> 
> Advice appreciated,
> 
> Rich
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (25+ messages)  latest in thread

Message-ID: <ea1d8fbe-3d09-6b92-ad12-1a3a59e093a3@aklaver.com>
Permalink:  ../ea1d8fbe-3d09-6b92-ad12-1a3a59e093a3@aklaver.com/
Also on:    postgresql.org/message-id/ea1d8fbe-3d09-6b92-ad12-1a3a59e093a3@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, rshepard@appl-ecosys.com
  Subject: Re: Move cluster to new host, upgraded version
  In-Reply-To: <ea1d8fbe-3d09-6b92-ad12-1a3a59e093a3@aklaver.com>
  References: <alpine.LNX.2.20.1811111118250.28051@salmo.appl-ecosys.com> <87wopjv2gu.fsf@news-spur.riddles.org.uk> <alpine.LNX.2.20.1811111216260.28051@salmo.appl-ecosys.com> <38cdd93b-e0be-ca3b-decd-64072356e6ce@aklaver.com> <alpine.LNX.2.20.1811111248390.28051@salmo.appl-ecosys.com> <alpine.LNX.2.20.1811111252520.28051@salmo.appl-ecosys.com> <alpine.LNX.2.20.1811131546150.19445@salmo.appl-ecosys.com> <6048bbde-04a4-3b90-00de-65adf78c8196@aklaver.com> <alpine.LNX.2.20.1811140652550.26515@salmo.appl-ecosys.com> <ea1d8fbe-3d09-6b92-ad12-1a3a59e093a3@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox