pg_checksums | verify checksums in offline Postgres clusters | Database library
kandi X-RAY | pg_checksums Summary
kandi X-RAY | pg_checksums Summary
pg_checksums_ext is based on the pg_verify_checksums and pg_checksums programs available in PostgreSQL version 11 and from 12, respectively. It can verify, activate or deactivate checksums. Activating requires all database blocks to be read and all page headers to be updated, so can take a long time on a large database. The database cluster needs to be shutdown cleanly in the case of checksum activation or deactivation, while checksum verification can be performed online, contrary to PostgreSQL’s pg_checksums. Other changes include the possibility to toggle progress reporting via the SIGUSR1 signal, more fine-grained progress reporting and I/O rate limiting. PostgreSQL versions since 9.3 are supported, the November 8th 2018 PostgreSQL point release is required.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pg_checksums
pg_checksums Key Features
pg_checksums Examples and Code Snippets
Community Discussions
Trending Discussions on pg_checksums
QUESTION
My postgreSQL database has been corrupted so that I'm trying to fix it with pg_checksum
.
I'm using docker
with docker-compose
,
and docker-compose.yml
seems like below.
ANSWER
Answered 2021-May-13 at 01:10You enable pg_checksums
before you have corruption, not after.
It needs the cluster to be shut down cleanly, and apparently it wasn't. It can't distinguish between a running server and a crashed (uncleanly shutdown) server. You could fix this just starting the cluster, letting go through automatic recovery, then shutting it down cleanly. But if it is already corrupt, this probably won't work. Whatever you need to do, pg_checksums is probably not the tool to do it.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pg_checksums
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page