[ADMIN] Migrating from CentOS repo to PostgreSQL repo - Mailing list pgsql-admin

From Don Seiler
Subject [ADMIN] Migrating from CentOS repo to PostgreSQL repo
Date
Msg-id CAHJZqBA4Se_zf-XU+n5uGeWuaxoW__XPPNKqCC0fYxyByhE26g@mail.gmail.com
Whole thread Raw
Responses Re: [ADMIN] Migrating from CentOS repo to PostgreSQL repo
List pgsql-admin
Howdy again listers.

In my stumbling around my new PostgreSQL surroundings, I found some inconsistency in a few of our 9.2 DB servers (all CentOS) in that some have installed postgresql-server from the CentOS7 base repository, where as others have installed postgresql92-server from the PostgreSQL repo. I've seen this with one of our 9.5 groups as well but I'm assuming the process will largely be the same.

I'd like to standardize all of these to use the postgresql.org repositories across the board. I'm wondering what the work involved is in doing so and not losing my database. Easy enough to test in a CentOS7 VM but just wanted to know if there were any known issues or tips to look for.

My initial guess at an action plan would be to:
  1. stop postgres
  2. Probably backup the config files
  3. Uninstall postgresql-server and other postgresql packages
  4. Pray that it didn't delete any data or config files?
  5. Configure the pgdg-centos92 repo in yum for that version of CentOS
  6. Install postgresql92-server from this repo
  7. Verify things start up.
  8. Look over any scripts that might have hard-coded binaries paths that have changed.
As always, looking forward to learning more and seeing what you all think.

Don.

--
Don Seiler
www.seiler.us

pgsql-admin by date:

Previous
From: Armin Resch
Date:
Subject: Re: [Non-DoD Source] Re: [ADMIN] Postgres user authentication withsecure LDAP
Next
From: Don Seiler
Date:
Subject: Re: [ADMIN] Shutdown Order with Primary/Standby?