Skip to content

Postgresql::Server::Config_entry uninitialized constant ParserError #1532

Closed
@jlindquist-godaddy

Description

@jlindquist-godaddy

Describe the Bug

Error: /Stage[main]/Postgresql::Server/Postgresql::Server::Config_entry[shared_buffers]/Postgresql_conf[shared_buffers]: Could not evaluate: uninitialized constant ParserError
Did you mean?  ParseError
Notice: /Stage[main]/Postgresql::Server::Service/Postgresql::Server::Instance::Service[main]/Anchor[postgresql::server::service::begin::main]: Dependency Postgresql_conf[shared_buffers] has failures: true

Expected Behavior

Catalog compilation does not fail, and config entry is properly validated and set as necessary

Steps to Reproduce

Include server config entries from Hiera

postgresql::server::config_entries:
  max_connections: 300
  shared_buffers: 4GB

Environment

  • Version 10.0.1
  • Platform CentOS 7

Additional Context

It looks like we're triggering the error here based on a config such as this which does have multiple entries that need to be resolved, but it should raise a proper error:

# grep shared_buffers /var/lib/pgsql/14/data/postgresql.conf
shared_buffers = 128MB # min 128kB
#wal_buffers = -1			# min 32kB, -1 sets based on shared_buffers
shared_buffers = 4GB

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions