pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedPg analog to DBCC CCHECKDB?
3+ messages / 3 participants
[nested] [flat]
* Pg analog to DBCC CCHECKDB?
@ 2019-04-05 14:33 Ron <ronljohnsonjr@gmail.com>
2019-04-05 15:55 ` Re: Pg analog to DBCC CCHECKDB? Michel Pelletier <pelletier.michel@gmail.com>
2019-04-05 16:04 ` Re: Pg analog to DBCC CCHECKDB? Peter Geoghegan <pg@bowt.ie>
0 siblings, 2 replies; 3+ messages in thread
From: Ron @ 2019-04-05 14:33 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
Hi,
In 9.6, does such a thing exist? (We just restored a VM from snapshot and I
want to verify the cluster sanity.)
Thanks
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Pg analog to DBCC CCHECKDB?
2019-04-05 14:33 Pg analog to DBCC CCHECKDB? Ron <ronljohnsonjr@gmail.com>
@ 2019-04-05 15:55 ` Michel Pelletier <pelletier.michel@gmail.com>
1 sibling, 0 replies; 3+ messages in thread
From: Michel Pelletier @ 2019-04-05 15:55 UTC (permalink / raw)
To: Ron <ronljohnsonjr@gmail.com>; +Cc: pgsql-general <pgsql-general@lists.postgresql.org>
There is amcheck:
https://www.postgresql.org/docs/current/amcheck.html
"When the heapallindexed argument to verification functions is true, an
additional phase of verification is performed against the table associated
with the target index relation. This consists of a “dummy” CREATE INDEX
operation, which checks for the presence of all hypothetical new index
tuples against a temporary, in-memory summarizing structure (this is built
when needed during the basic first phase of verification). The summarizing
structure “fingerprints” every tuple found within the target index. The
high level principle behind heapallindexed verification is that a new index
that is equivalent to the existing, target index must only have entries
that can be found in the existing structure."
I haven't used this tool but it looks promising:
https://github.com/tvondra/pg_check
On Fri, Apr 5, 2019 at 7:34 AM Ron <ronljohnsonjr@gmail.com> wrote:
> Hi,
>
> In 9.6, does such a thing exist? (We just restored a VM from snapshot and
> I
> want to verify the cluster sanity.)
>
> Thanks
>
> --
> Angular momentum makes the world go 'round.
>
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Pg analog to DBCC CCHECKDB?
2019-04-05 14:33 Pg analog to DBCC CCHECKDB? Ron <ronljohnsonjr@gmail.com>
@ 2019-04-05 16:04 ` Peter Geoghegan <pg@bowt.ie>
1 sibling, 0 replies; 3+ messages in thread
From: Peter Geoghegan @ 2019-04-05 16:04 UTC (permalink / raw)
To: Ron <ronljohnsonjr@gmail.com>; +Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
On Fri, Apr 5, 2019 at 7:33 AM Ron <ronljohnsonjr@gmail.com> wrote:
> In 9.6, does such a thing exist? (We just restored a VM from snapshot and I
> want to verify the cluster sanity.)
amcheck is available for versions 9.4+, though it only appears in
contrib in Postgres 10. There are both yum and deb packages available.
See:
https://github.com/petergeoghegan/amcheck
--
Peter Geoghegan
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2019-04-05 16:04 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-04-05 14:33 Pg analog to DBCC CCHECKDB? Ron <ronljohnsonjr@gmail.com>
2019-04-05 15:55 ` Michel Pelletier <pelletier.michel@gmail.com>
2019-04-05 16:04 ` Peter Geoghegan <pg@bowt.ie>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox