Skip to content

add data_checksums option to initdb #878

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2017

Conversation

tjikkun
Copy link
Contributor

@tjikkun tjikkun commented Jun 1, 2017

No description provided.

@@ -82,11 +83,17 @@
$require_before_initdb = [$datadir]
}

$initdb_command = $locale ? {
$ic_locale = $locale ? {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the meaning of this variable name, it is a little terse. was there any reason to rename it ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, it was like this:

$ic_base = "${initdb_path} --encoding '${encoding}' --pgdata '${datadir}'"
$ic_xlog = $ic_base + optional xlogdir
$initdb_command = $ic_xlog + optional locale

Now I changed it so:

$ic_base = "${initdb_path} --encoding '${encoding}' --pgdata '${datadir}'"
$ic_xlog = $ic_base + optional xlogdir
$ic_locale = $ic_xlog + optional locale
$initdb_command = $ic_locale + optional data-checksums

Basically ic_ (probably short for initdb_command) was there before, I just kept the same convention.

@tphoney
Copy link
Contributor

tphoney commented Jul 3, 2017

Looks pretty good otherwise.

@tphoney tphoney merged commit cf8a119 into puppetlabs:master Jul 3, 2017
@tphoney
Copy link
Contributor

tphoney commented Jul 3, 2017

thanks for the work @tjikkun :)

cegeka-jenkins pushed a commit to cegeka/puppet-postgresql that referenced this pull request Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants