yandex-qatools / postgresql-embedded

Embedded PostgreSQL Server
Other
493 stars 90 forks source link

increase max_connections and other postgresql.conf options #127

Open cobbzilla opened 6 years ago

cobbzilla commented 6 years ago

I'd like to increase the max_connections setting in the postgresql.conf file. I understand that on a first-run, this file will be created by initdb. Is there a way to adjust the config settings when (or after) the file is written, or in any case before starting the server process?

attila-kiss-it commented 5 years ago

@cobbzilla : I have added a new feature on pull request #146 that enables the postgres executable configurations.

pawel-kaminski-krk commented 5 years ago

hi, why do you expose parameters as list, it is so confusing. I have to guess whether this should be asList("param", "value", "param2", "value2") or asList("param=value", "param2=value2").

cannot it be just a Map/Properties that will be transformed internally to something else???

pawel-kaminski-krk commented 5 years ago

anyway I have hard time setting

max_replication_slot
max_wal_senders

looking at AbstractPostgresConfig.java it should be something like asList("-c", "max_replication_slots=1", "-c", "max_wal_senders=1", "-c", "wal_level=logical")