Skip to content

Conversation

stpierre
Copy link
Contributor

This contains a number of fixes for the password option to
postgresql_proc:

  • Use password auth if it's specified, so that the password is
    actually honored.
  • Move --pwfile into the options list so that it's passed through to
    initdb; otherwise it causes an error as pg_ctl doesn't expect a
    --pwfile option.
  • Don't use a shell to run initdb.
  • Use lists instead of tuples to avoid tuple copying on append.
  • Flush the password file so that it actually hits disk.
  • Add unit test to cover the password option.

Fixes #[ISSUE_NUMBER_HERE].

Changes proposed.

@coveralls
Copy link

coveralls commented Jul 31, 2020

Coverage Status

Coverage increased (+2.5%) to 59.241% when pulling 8bcbe41 on stpierre:stpierre/more-password-fixes into fd378fc on ClearcodeHQ:master.

This contains a number of fixes for the password option to
postgresql_proc:

* Use password auth if it's specified, so that the password is
  actually honored.
* Move --pwfile into the options list so that it's passed through to
  `initdb`; otherwise it causes an error as `pg_ctl` doesn't expect a
  --pwfile option.
* Don't use a shell to run initdb.
* Use lists instead of tuples to avoid tuple copying on append.
* Flush the password file so that it actually hits disk.
* Add unit test to cover the password option.
@stpierre stpierre force-pushed the stpierre/more-password-fixes branch from 05d6d64 to 8bcbe41 Compare July 31, 2020 14:49
@fizyk fizyk merged commit ec26343 into dbfixtures:master Jul 31, 2020
@stpierre stpierre deleted the stpierre/more-password-fixes branch July 31, 2020 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants