Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fGYly-0006t7-Rc for pgsql-general@arkaria.postgresql.org; Wed, 09 May 2018 23:45:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fGYlx-0006SS-Mo for pgsql-general@arkaria.postgresql.org; Wed, 09 May 2018 23:45:25 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fGYlx-0006SH-AT for pgsql-general@lists.postgresql.org; Wed, 09 May 2018 23:45:25 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fGYle-0005L4-Ei for pgsql-general@postgresql.org; Wed, 09 May 2018 23:45:24 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 8F21121847; Wed, 9 May 2018 19:45:05 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 09 May 2018 19:45:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=1DI0l5pYguZp8VasOIcsWCU0QZup3 dSxY/RJCTLaqzk=; b=BDrbgByOn6CLJfeKwPuDvnhglOU0xWIZC3KoKTXGsI5wZ fBiRK3FuLCe3oXsM2p9DEDmAS31QTf1JYORAt5gyd3AOCwBtJGO2IcGlAlXgAsNC H/+coduLfw4hoYA4H1nmtq7kM0d+KvEoSPko717hYzxaGiOnyBgd5nwpE25WF6mJ 5W3hdtvhi+SsBOANQDeMJUgczIwAeCIBoGxjUJB17kre7qPC/OSR6vWFFc2Aqe3/ jlU9ztkSspkx+VHOfrVp4oFhqZ7fKAMb3KwhJnmxCoPB0/aR/ddIZlqU7443d1KD +gk6KAv3QA9ZhR10W92yLsO9J5eNUJ0uiNtELAXow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=1DI0l5 pYguZp8VasOIcsWCU0QZup3dSxY/RJCTLaqzk=; b=Jy7gOv5U90wl4+rZQY3ZvV /JIlbxcO2IRvzF7gp7RqMCjjuhHbKxV4XugbcaHbg1oiymO6L65uoH5dY8U9viP5 H12mhPrDQJYlTrFgqGxaLW2AI8cRz81mBjPILacGjvro60oduYYZ9RTj4apaGj35 1iA8V2+mkt4/tH/eJka4Dd+mN2OpYpNgQ3gjju/A45hugc02EDRXw7p1UGj9O0DK REawU6aY5cjw6toL6ff1vTYQucvq+SekRltSeF7uCHcGdXSOfVt9wQdspSUWgMDX hZu/WSRVJi0jasq+cO0hAyANSA5/vXLZh0x/k8q/gT3E3ZX4fcM5hI3qu61tQIvA == X-ME-Sender: Received: from [192.168.1.2] (unknown [71.212.135.74]) by mail.messagingengine.com (Postfix) with ESMTPA id AA7DBE4EEF; Wed, 9 May 2018 19:45:04 -0400 (EDT) Subject: Re: issues when installing postgres To: Antonio Silva Cc: pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: Date: Wed, 9 May 2018 16:45:03 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 >: > > 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 > > -- Adrian Klaver adrian.klaver@aklaver.com