Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f4N53-0001CA-2b for pgsql-admin@arkaria.postgresql.org; Fri, 06 Apr 2018 08:50:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f4N51-0004ks-V3 for pgsql-admin@arkaria.postgresql.org; Fri, 06 Apr 2018 08:50:43 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1f4N51-0004ki-NI for pgsql-admin@lists.postgresql.org; Fri, 06 Apr 2018 08:50:43 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by magus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f4N4y-0008K1-8B for pgsql-admin@postgresql.org; Fri, 06 Apr 2018 08:50:43 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 49499429A5; Fri, 6 Apr 2018 10:50:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id z1lJ2WLjz0dl; Fri, 6 Apr 2018 10:50:36 +0200 (CEST) Message-ID: <1523004635.2420.45.camel@cybertec.at> Subject: Re: Fwd: [CentOS] Centos 7 LAPP setup Postgresql version and setup From: Laurenz Albe To: Gary Stainburn , pgsql-admin Date: Fri, 06 Apr 2018 10:50:35 +0200 In-Reply-To: <201804060915.25099.gary@ringways.co.uk> References: <201804060915.25099.gary@ringways.co.uk> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, 2018-04-06 at 09:15 +0100, Gary Stainburn wrote: > I've got a nice shiny new server which I'm going to build as a LAPP platform. > [...] > > 1) 9.2 vs 9.5 > > Some of the instruction pages I've found install using the standard > repositories and install version 9.2 (?) while some others add a postgresql > repo and install 9.5 > > What are people's opinions? In the long term, and I going to have more admin > hassle with one over the other? > > Will porting schemas including stored functions in pl/psql from 8.3 be > easier / better with one version over the other? Do not install 9.2. It is out of support. Use v10 or 9.6 (if you lean towards older versions). Do not use the PostgreSQL that comes with the operating system, use the binaries provided by the PostgreSQL project. > 2) network vs sockets > > I read somewhere that connecting Apache / PHP to Postgresql is faster if you > use sockets rather than usling the loopback i/f. Is this correct? If it is > correct, what is the correct connect string if I use the 9.2 or 9.5 RPM's as > described above? > > There seems to be lots of Google content about sockets not working. Is it > really that hard? > > (I use pg_pconnect() to do the connecting) Sockets is the way to go on localhost if you can. Just use "host=/tmp" (or wherever unix_socket_directories points on your server). Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com