Re: make postgresql 9.5 default on centos 7

From: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
To: Devrim Gündüz <devrim(at)gunduz(dot)org>
Cc: Steve Clark <steve(dot)clark(at)netwolves(dot)com>, pgsql <pgsql-general(at)postgresql(dot)org>
Subject: Re: make postgresql 9.5 default on centos 7
Date: 2017-08-22 22:46:14
Message-ID: CAOR=d=2+J2vcyw05kBfp9=MErX8i4huxDymwJmMuWpJZ=mj14Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Aug 22, 2017 at 12:44 PM, Devrim Gündüz <devrim(at)gunduz(dot)org> wrote:
>
> Hi,
>
> On Fri, 2017-08-18 at 13:50 -0400, Steve Clark wrote:
>> I loaded 9.5 on CentOS 7 but by default every thing wants to use the default
>> 9.2 version that comes with CentOS 7.
>>
>> Is there a simple way to fix this so the 9.5 version of tools and libraries
>> are used.
>
> yum remove postgresql-*
> yum reinstall postgresql95*
>
> will do the trick. Please note that the second one will restart the database,
> so make sure that you run these in a maintenance period.
>
> The first command will remove all OS PostgreSQL packages. This is a required
> step to remove actual binaries from OS. The second command will reinstall the
> packages, and they will create alternatives entries for the binaries, etc.

Centos and Yum have supported multiple versions of PostgreSQL for
quite some time now. Just change the ports in their respective
postgresql.conf files and start them up.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2017-08-22 22:52:22 Re: PG and database encryption
Previous Message Igor Korot 2017-08-22 22:18:07 Re: What is the proper query