From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Antonio Silva <aolinto.lst@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: issues when installing postgres
Date: Wed, 9 May 2018 16:45:03 -0700
Message-ID: <c775c5d8-0e83-9ea5-85e5-c8846f1cda61@aklaver.com> (raw)
In-Reply-To: <CAE8g1gO5NQdOhN8K4mkEXQN=kjtOAxNTco-S6_ZEY4Kn4PYV4w@mail.gmail.com>
References: <CAE8g1gPUqmaxi91eC2573OSL1=RiSOXiTecVDZ1ez7C_uXCMDQ@mail.gmail.com>
<cc11a0e7-598b-6373-9529-aee340708f16@aklaver.com>
<CAE8g1gO5NQdOhN8K4mkEXQN=kjtOAxNTco-S6_ZEY4Kn4PYV4w@mail.gmail.com>
On 05/09/2018 02:47 PM, Antonio Silva wrote:
> Hello Adrian
>
> Are you using the Ubuntu or Postgres repos?
> > I'm using the Ubuntu repos
>
> Can you connect to Postgres using psql?
> > No I cannot
What does ps ax | grep post show?
My guess is you are going to have to reinstall Postgres.
>
> Thanks
>
> Antonio
>
>
> 2018-05-09 10:36 GMT-03:00 Adrian Klaver <adrian.klaver@aklaver.com
> <mailto:adrian.klaver@aklaver.com>>:
>
> On 05/08/2018 05:54 PM, Antonio Silva wrote:
>
> Hello!
>
>
> Comments inline.
>
> I bought a new computer and I installed Ubuntu 18.04 and after
> PostgreSQL.
> sudo apt install postgresql postgresql-contrib pgadmin3
>
>
> Are you using the Ubuntu or Postgres repos?
>
>
> Nevertheless I had some issues with configuration files and
> decided to
> uninstall it completely
> sudo apt purge postgresql postgresql-contrib pgadmin3
>
> When I installed it again I notice that postgresql.conf and
> pg_hba.conf
> were the oldies files. Then I uninstall Postgres once more and
> removed the
> directory /etc/postgresql/
>
> After a new install I noticed that the directory
> /etc/postgresql/ was
> completely empty - it was not created again. There are no more
> postgresql.conf and pg_hba.conf files. I could find only
> postgresql.conf.sample and pg_hba.conf.sample at
> /usr/share/postgresql/10
>
> /etc/init.d/postgresql status says that Postgres is running fine
>
>
> Can you connect to Postgres using psql?
>
>
> ● postgresql.service - PostgreSQL RDBMS
> Loaded: loaded (/lib/systemd/system/postgresql.service; enabled;
> vendor
> preset: enabled)
> Active: active (exited) since Tue 2018-05-08 10:43:23 -03; 1h
> 55min ago
> Process: 6451 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
> Main PID: 6451 (code=exited, status=0/SUCCESS)
>
>
> To be running the server would need its conf files somewhere.
>
>
> What should I have to do to heve the folder /etc/postgresql/10/
> ... and all
> its files agais?
>
>
> If you are going to use the packages then yes.
>
>
>
>
> I really appreciate any help. Thanks in advance.
>
> All the best
>
> --
> Antônio Olinto Ávila da Silva
>
>
>
> --
> Adrian Klaver
> adrian.klaver@aklaver.com <mailto:adrian.klaver@aklaver.com>
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
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, aolinto.lst@gmail.com
Subject: Re: issues when installing postgres
In-Reply-To: <c775c5d8-0e83-9ea5-85e5-c8846f1cda61@aklaver.com>
References: <CAE8g1gPUqmaxi91eC2573OSL1=RiSOXiTecVDZ1ez7C_uXCMDQ@mail.gmail.com> <cc11a0e7-598b-6373-9529-aee340708f16@aklaver.com> <CAE8g1gO5NQdOhN8K4mkEXQN=kjtOAxNTco-S6_ZEY4Kn4PYV4w@mail.gmail.com> <c775c5d8-0e83-9ea5-85e5-c8846f1cda61@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