Skip to content

Conversation

@blubber
Copy link

@blubber blubber commented Jun 2, 2017

The option is turned on by default, whih is a best practice because it safeguards data integrity at a minimal performance cost.

"Use checksums on data pages to help detect corruption by the I/O system that would otherwise be silent. Enabling checksums may incur a noticeable performance penalty. This option can only be set during initialization, and cannot be changed later. If set, checksums are calculated for all objects, in all databases."

Edit: seems this is just for RedHat, don't know how initdb get's executed on Debian derivatives.

Copy link

@erdenezul erdenezul left a comment

Choose a reason for hiding this comment

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

LGTM

@UnderGreen
Copy link
Contributor

LGTM. Except I would recommend to use Ansible official function for comparison versions.

The option is turned on by default, whih is a best practice
because it safeguards data integrity at a minimal performance
cost.

"Use checksums on data pages to help detect corruption by the I/O system
that would otherwise be silent. Enabling checksums may incur a
noticeable performance penalty. This option can only be set during
initialization, and cannot be changed later. If set, checksums are
calculated for all objects, in all databases."
@blubber
Copy link
Author

blubber commented Mar 2, 2018

Changed it to use the version_compare filter.

gclough pushed a commit to gclough/postgresql that referenced this pull request Mar 5, 2018
Blatantly merged in code from ANXS#246, as suggested by @UnderGreen , and coded by @blubber .  I hope this isn't seen negatively, as I'm trying to expand the code to cover all initdb options.  I'd be just as happy if you want to take my code, and merge it into ANXS#246.
@blubber
Copy link
Author

blubber commented Apr 28, 2018

Superseded by #287

@blubber blubber closed this Apr 28, 2018
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