mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Add pg_amcheck, a CLI for contrib/amcheck.
This makes it a lot easier to run the corruption checks that are implemented by contrib/amcheck against lots of relations and get the result in an easily understandable format. It has a wide variety of options for choosing which relations to check and which checks to perform, and it can run checks in parallel if you want. Mark Dilger, reviewed by Peter Geoghegan and by me. Discussion: http://postgr.es/m/12ED3DA8-25F0-4B68-937D-D907CFBF08E7@enterprisedb.com Discussion: http://postgr.es/m/BA592F2D-F928-46FF-9516-2B827F067F57@enterprisedb.com
This commit is contained in:
@ -20,12 +20,12 @@ our (@ISA, @EXPORT_OK);
|
||||
my $insttype;
|
||||
my @client_contribs = ('oid2name', 'pgbench', 'vacuumlo');
|
||||
my @client_program_files = (
|
||||
'clusterdb', 'createdb', 'createuser', 'dropdb',
|
||||
'dropuser', 'ecpg', 'libecpg', 'libecpg_compat',
|
||||
'libpgtypes', 'libpq', 'pg_basebackup', 'pg_config',
|
||||
'pg_dump', 'pg_dumpall', 'pg_isready', 'pg_receivewal',
|
||||
'pg_recvlogical', 'pg_restore', 'psql', 'reindexdb',
|
||||
'vacuumdb', @client_contribs);
|
||||
'clusterdb', 'createdb', 'createuser', 'dropdb',
|
||||
'dropuser', 'ecpg', 'libecpg', 'libecpg_compat',
|
||||
'libpgtypes', 'libpq', 'pg_amcheck', 'pg_basebackup',
|
||||
'pg_config', 'pg_dump', 'pg_dumpall', 'pg_isready',
|
||||
'pg_receivewal', 'pg_recvlogical', 'pg_restore', 'psql',
|
||||
'reindexdb', 'vacuumdb', @client_contribs);
|
||||
|
||||
sub lcopy
|
||||
{
|
||||
|
@ -54,17 +54,18 @@ my @contrib_excludes = (
|
||||
|
||||
# Set of variables for frontend modules
|
||||
my $frontend_defines = { 'initdb' => 'FRONTEND' };
|
||||
my @frontend_uselibpq = ('pg_ctl', 'pg_upgrade', 'pgbench', 'psql', 'initdb');
|
||||
my @frontend_uselibpq = ('pg_amcheck', 'pg_ctl', 'pg_upgrade', 'pgbench', 'psql', 'initdb');
|
||||
my @frontend_uselibpgport = (
|
||||
'pg_archivecleanup', 'pg_test_fsync',
|
||||
'pg_amcheck', 'pg_archivecleanup', 'pg_test_fsync',
|
||||
'pg_test_timing', 'pg_upgrade',
|
||||
'pg_waldump', 'pgbench');
|
||||
my @frontend_uselibpgcommon = (
|
||||
'pg_archivecleanup', 'pg_test_fsync',
|
||||
'pg_amcheck', 'pg_archivecleanup', 'pg_test_fsync',
|
||||
'pg_test_timing', 'pg_upgrade',
|
||||
'pg_waldump', 'pgbench');
|
||||
my $frontend_extralibs = {
|
||||
'initdb' => ['ws2_32.lib'],
|
||||
'pg_amcheck' => ['ws2_32.lib'],
|
||||
'pg_restore' => ['ws2_32.lib'],
|
||||
'pgbench' => ['ws2_32.lib'],
|
||||
'psql' => ['ws2_32.lib']
|
||||
|
Reference in New Issue
Block a user