Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iEwy3-00031P-LN for pgsql-admin@arkaria.postgresql.org; Mon, 30 Sep 2019 14:48:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iEwy2-0000D7-8G for pgsql-admin@arkaria.postgresql.org; Mon, 30 Sep 2019 14:48:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iEwy1-0000Cv-Uz for pgsql-admin@lists.postgresql.org; Mon, 30 Sep 2019 14:48:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iEwxz-0000qN-Gn for pgsql-admin@lists.postgresql.org; Mon, 30 Sep 2019 14:48:01 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x8UElrV3026006; Mon, 30 Sep 2019 10:47:54 -0400 From: Tom Lane To: Ekaterina Amez cc: pgsql-admin@lists.postgresql.org Subject: Re: Files overwritten when installing v9.6 in machine with v8.4 previously running In-reply-to: <221d54aa-e272-f9a9-0a8b-ead42bee43c1@zunibal.com> References: <4cd198c1-5035-9374-500d-a7167b6ae05e@zunibal.com> <00bea3ea-ee92-00cb-8b27-1e82d4e4a6e9@gmail.com> <221d54aa-e272-f9a9-0a8b-ead42bee43c1@zunibal.com> Comments: In-reply-to Ekaterina Amez message dated "Mon, 30 Sep 2019 16:13:32 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <26004.1569854873.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 30 Sep 2019 10:47:53 -0400 Message-ID: <26005.1569854873@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Ekaterina Amez writes: > I first thought they were going to be installed in their own > directories, but I'm starting to think that I'm missing something during > instalation process or maybe I'm missing something at deeper level > (probably lack of knowledge about linux and postgres). The thing is > after installing v9.6, having both versions running, I can't connect to > the older one and I'm having the message:  "no such file or directory. > Is the server running locally and accepting connections on Unix domain > socket "/var/run/postgresql/.s.PGSQL.5432"?". This is probably a case of confusion about where the Unix socket file is. There are competing standards about that: as we ship it, that file will be in /tmp, but some Linux vendors make it be /var/run/postgresql because of filesystem layout rules. You are evidently using a libpq that was built to default to /var/run/postgresql --- and since we can see that you have a postmaster running on port 5432, it must have put its socket file somewhere else, which I'm going to jump to the conclusion is /tmp. You can override the client's default socket directory via something like psql -h /tmp ... A better long-term fix might be to change the postmaster's unix_socket_directory(ies) setting to agree with what the updated client library expects. regards, tom lane