Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-8352

puppetlabs/postgresql : encoding can't be undef for postgresql 11

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: postgresql
    • Labels:
      None
    • Template:
      MODULES Bug Template
    • Team:
      Modules
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Hi,

      I'm trying to install PostgreSQL 11 on CentOS 7 using puppetlabs/postgresql 5.11.0 puppet module but it fails on initdb because of missing encoding.

      Module Version: 5.11.0
      Puppet Version: 4.10.10
      OS Name/Version:

      CentOS7 / PostgreSQL 11.1

      Desired Behavior:

      With previous versions of postgresql (tested upto 10.6), encoding can be undefined, which means initdb automatically finds the best one. This command actually works:

      /usr/pgsql-11/bin/initdb --encoding '' --pgdata '/data/pgsql_data' -X '/log/pgsql_xlog'

      The command should be rewritten to:

      /usr/pgsql-11/bin/initdb --pgdata '/data/pgsql_data' -X '/log/pgsql_xlog'

      Actual Behavior:

      Starting with postgresql 11, passing empty string to initdb --encoding parameter makes the command to fail:

      initdb: "" is not a valid server encoding name

       

       

       

        Attachments

          Activity

            People

            Assignee:
            eimhin.laverty Eimhin Laverty
            Reporter:
            davidb2111 David Barbion
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support