Giter Club home page Giter Club logo

Comments (10)

steve-gregory avatar steve-gregory commented on August 25, 2024

Clank should also uninstall 9.3 or explicitly stop all postgresql services and then explicitly start the selected version of postgresql to ensure atmosphere app does not fail to make migrations dependent on postgresql >9.3

from clank.

amercer1 avatar amercer1 commented on August 25, 2024

Two edge cases right
If clank is running on ubuntu 14.04

  1. install postgresql 9.4 if fresh install
  2. shutdown 9.3, install 9.4 and upgrade cluster(s)

https://medium.com/@tk512/upgrading-postgresql-from-9-3-to-9-4-on-ubuntu-14-04-lts-2b4ddcd26535#.9t9fkpl4u

from clank.

lenards avatar lenards commented on August 25, 2024

I think we want to look at going from 9.3 to 9.5.

Which is noted in that 9.3 to 9.4 article: https://medium.com/@tk512/upgrading-postgresql-from-9-4-to-9-5-on-ubuntu-14-04-lts-dfd93773d4a5#.hee4l9mjy

from clank.

lenards avatar lenards commented on August 25, 2024

Note - we do not use pg in a clustered scenario ... our upgrade / migration steps will be slightly different:

from clank.

lenards avatar lenards commented on August 25, 2024

In the spirit of reuse, I have found an example of updating from pg 9.1 to 9.4.

from clank.

lenards avatar lenards commented on August 25, 2024

#92 addresses just including the PostgreSQL Apt repository.

We still need to consider automating the upgrade portion to consider this resolved.

from clank.

lenards avatar lenards commented on August 25, 2024

So, I have been out of the Postgres game for a couple of years. I was confused about pg_upgrade versus pg_upgradecluster. I didn't find too much info about the difference between the two, just that most "guides" favor pg_upgradecluster (like the one linked above).

So, pg_upgradecluster is one of several cluster tools included in the postgresql-common packages that we are installing in all deployed environments.

Listing the cluster is one thing you get as well:

vagrant@vagrant-ubuntu-trusty-64:~$ pg_lsclusters 
Ver Cluster Port Status Owner    Data directory               Log file
9.3 main    5432 online postgres /var/lib/postgresql/9.3/main /var/log/postgresql/postgresql-9.3-main.log

So - whatever is done in Ansible, using pg_upgradecluster is the path of least resistance!

from clank.

lenards avatar lenards commented on August 25, 2024

Clank now supports upgrading to PostgreSQL 9.5 (or a target pg_version).

from clank.

lenards avatar lenards commented on August 25, 2024

Considered fixed by #98.

from clank.

lenards avatar lenards commented on August 25, 2024

Note, postgresql-common is a Debian package: https://github.com/jbq/postgresql-common

from clank.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.