Обсуждение: Amcheck extension query for tables (verify_heapam)

Поиск
Список
Период
Сортировка

Amcheck extension query for tables (verify_heapam)

От
Raul Kaubi
Дата:
Hi

PostgreSQL 14 has the built in function for amcheck extension called "verify_heapam".
I was wondering, is there similar query for that function as well like there is for "bt_index_check" function..?

I do not see that here:

I would like to monitor both (tables and indexes) for corruption checks.

Regards
Raul Kaubi

Re: Amcheck extension query for tables (verify_heapam)

От
MichaelDBA
Дата:
SELECT verify_heapam('mytable')


Raul Kaubi wrote on 5/30/2022 4:00 AM:
Hi

PostgreSQL 14 has the built in function for amcheck extension called "verify_heapam".
I was wondering, is there similar query for that function as well like there is for "bt_index_check" function..?

I do not see that here:

I would like to monitor both (tables and indexes) for corruption checks.

Regards
Raul Kaubi


Regards,

Michael Vitale

Michaeldba@sqlexec.com

703-600-9343 


Вложения

Re: Amcheck extension query for tables (verify_heapam)

От
Peter Geoghegan
Дата:
On Mon, May 30, 2022 at 1:00 AM Raul Kaubi <raulkaubi@gmail.com> wrote:
> PostgreSQL 14 has the built in function for amcheck extension called "verify_heapam".
> I was wondering, is there similar query for that function as well like there is for "bt_index_check" function..?

You should probably just use the higher level pg_amcheck utility,
which runs everything from amcheck including verify_heapam() under the
hood.

-- 
Peter Geoghegan