pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthias Apitz <guru@unixarea.de>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Marco Ippolito <ippolito.marco@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Installed PostgreSQL-11 in Ubuntu 18.04.02 Server Edition: No existing local cluster is suitable as a default target
Date: Wed, 18 Sep 2019 16:49:01 +0200
Message-ID: <20190918144901.GA3103@c720-r342378> (raw)
In-Reply-To: <793c3697-dc15-973b-575e-e269cf3b0cad@aklaver.com>
References: <CAFegzBRjjrzv2mPTi4_dYAZjqvL951CbfRffngnCmmy5jN1QRA@mail.gmail.com>
	<VisenaEmail.56.bae53721737ec52e.16d43e8f7e1@tc7-visena>
	<CAFegzBQ-mO076Xrs7KSLeZCDXw3JzA6R3kTm4y1W64zDGDnrvg@mail.gmail.com>
	<20190918131106.GA167414@sh4-5.1blu.de>
	<CAFegzBT5_GSQbRTpamocdJL8GqPHrFJ+DGG=pChc6-Lh8nJmAQ@mail.gmail.com>
	<793c3697-dc15-973b-575e-e269cf3b0cad@aklaver.com>

El día miércoles, septiembre 18, 2019 a las 07:41:41a. m. -0700, Adrian Klaver escribió:

> On 9/18/19 6:13 AM, Marco Ippolito wrote:
> > Thanks Matthias,
> > very kind. Hopefully I will get some hints on how to solve my problem.
> 
> You should probably take a look at:
> 
> https://help.ubuntu.com/lts/serverguide/postgresql.html
> 
> FYI, you should set the permission son /usr/lib/postgresql back to root 
> and use:
> 
> sudo pg_ctl <command>

NAK. In my understanding, the dir above the data dir of the cluster
should be owned by 'postgres' and the pg_ctl run as 'postgres':

# mkdir /data/postgresql11
# chown postgres /data/postgresql11
# su - postgres
$ LANG=de_DE.UTF-8 export LANG
$ /usr/local/sisis-pap/pgsql/bin/pg_ctl -D /data/postgresql11/data initdb

This is stolen from the pages mentioned, i.e. https://www.postgresql.org/docs/11/runtime.html
(chapter 18. Server Setup and Operation) and worked out of the box fine
for me.

	matthias


-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub

Mientras haya voluntad de lucha habrá esperanza de vencer.





view thread (13+ messages)  latest in thread

Message-ID: <20190918144901.GA3103@c720-r342378>
Permalink:  ../20190918144901.GA3103@c720-r342378/
Also on:    postgresql.org/message-id/20190918144901.GA3103@c720-r342378

 · 

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: guru@unixarea.de, adrian.klaver@aklaver.com, ippolito.marco@gmail.com
  Subject: Re: Installed PostgreSQL-11 in Ubuntu 18.04.02 Server Edition: No existing local cluster is suitable as a default target
  In-Reply-To: <20190918144901.GA3103@c720-r342378>
  References: <CAFegzBRjjrzv2mPTi4_dYAZjqvL951CbfRffngnCmmy5jN1QRA@mail.gmail.com> <VisenaEmail.56.bae53721737ec52e.16d43e8f7e1@tc7-visena> <CAFegzBQ-mO076Xrs7KSLeZCDXw3JzA6R3kTm4y1W64zDGDnrvg@mail.gmail.com> <20190918131106.GA167414@sh4-5.1blu.de> <CAFegzBT5_GSQbRTpamocdJL8GqPHrFJ+DGG=pChc6-Lh8nJmAQ@mail.gmail.com> <793c3697-dc15-973b-575e-e269cf3b0cad@aklaver.com> <20190918144901.GA3103@c720-r342378>

* 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