You can use pg_controldata if your postgresql cluster includes data_checksum. if version = 0, then your cluster will disable the function. And the data_checksums parameter adds PostgreSQL 9.3.4, if your version of postgresql is smaller than this, you cannot select this guc parameter. You must check it with a control file.
pg93@db-172-16-3-150- > pg_controldata |grep checksum Data page checksum version: 0
digoal.zhou
source share