Giter VIP home page Giter VIP logo

Comments (12)

rud avatar rud commented on June 9, 2024

@scottanderson42 this seems like a good time to fork and adjust your own copy to taste. Not sure it makes sense to generate configurations for older versions of the software, but that may just be me?

from postgresql.

tehranian avatar tehranian commented on June 9, 2024

It seems to me that one could use Ansible's version_compare() filter in the postgresql.conf.j2 template and conditionally not put the offending configuration directives for older versions of PostgreSQL.

http://docs.ansible.com/playbooks_variables.html#version-comparison-filters

from postgresql.

rud avatar rud commented on June 9, 2024

Always an option, sure. There's a cost/benefit tradeoff in that, though, plus more permutations to test and verify going forward. Just thought I'd chime in on a months old issue is all.

from postgresql.

sebalix avatar sebalix commented on June 9, 2024

If Ansible is used to bootstrap a system that's ok to forget old versions of PostgreSQL. But if playbooks are run from time to time on hosts running different versions of Pg, this is nice to support at least the last versions. A workaround would be to checkout this role several times on different commits following the versions we need to support... but it's a bit ugly, I think.

from postgresql.

clonedagain avatar clonedagain commented on June 9, 2024

@rud since there's a "version" option, users expect several versions to be installable. If only some versions are, it must be clear and not fail with an obscure error message.

@sebalix there are still enough servers deployed in production with older versions to make it a valid use case IMHO. When an old PG is part of a officially supported stack (ie. Odoo v7 officially targets PG 9.1) and PG works well enough, operators will be reluctant to upgrade.

from postgresql.

sebalix avatar sebalix commented on June 9, 2024

We are in the same case, we manage PostgreSQL from version 9.1 to 9.4 (and some 8.X too, but it's not a problem if we don't support them via Ansible).

from postgresql.

jean avatar jean commented on June 9, 2024

Just starting out with this recipe and PostgreSQL 9.2, LOG: unrecognized configuration parameter "unix_socket_directories" in file "/etc/postgresql/9.2/main/postgresql.conf" line 57 etc ...

from postgresql.

rud avatar rud commented on June 9, 2024

I think a PR to fix this is welcome 🌟

from postgresql.

otakup0pe avatar otakup0pe commented on June 9, 2024

We would almost certainly merge an PR around a good implementation of this fix, such as is being discussed.

from postgresql.

sebalix avatar sebalix commented on June 9, 2024

It has already be done for PostgreSQL 9.3 and 9.4: #66
We just need to add postgresql.conf files related to the 9.2 version and update available options:

  • add the upstream postgresql.conf-9.2.orig (from the Debian package for instance)
  • make a diff between the 9.3.orig and 9.2.orig
  • copy postgresql.conf-9.3.j2 to postgresql.conf-9.2.j2 and adapt it following the previous diff
  • update default/main.yml
  • update .travis.yml to test this version

I can do it if you want.

from postgresql.

sebalix avatar sebalix commented on June 9, 2024

I started to work on the support of 9.1 and 9.2 versions. There is some conflicts with the PostgreSQL pre-installed by Travis, I try to fix them and I will make a PR.

from postgresql.

soupdiver avatar soupdiver commented on June 9, 2024

@sebalix Thanks man!

from postgresql.

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.