mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-02-16 15:18:40 +02:00
Revert "[PBCKP-120] skip partitioned indexes for checkdb --amcheck"
This commit is contained in:
parent
dfb8b1f316
commit
79009c652c
@ -461,9 +461,7 @@ get_index_list(const char *dbname, bool first_db_with_amcheck,
|
||||
"LEFT JOIN pg_catalog.pg_class cls ON idx.indexrelid=cls.oid "
|
||||
"LEFT JOIN pg_catalog.pg_namespace nmspc ON cls.relnamespace=nmspc.oid "
|
||||
"LEFT JOIN pg_catalog.pg_am am ON cls.relam=am.oid "
|
||||
"WHERE am.amname='btree' "
|
||||
"AND cls.relpersistence != 't' "
|
||||
"AND cls.relkind != 'I' "
|
||||
"WHERE am.amname='btree' AND cls.relpersistence != 't' "
|
||||
"ORDER BY nmspc.nspname DESC",
|
||||
0, NULL);
|
||||
}
|
||||
@ -475,10 +473,8 @@ get_index_list(const char *dbname, bool first_db_with_amcheck,
|
||||
"LEFT JOIN pg_catalog.pg_class cls ON idx.indexrelid=cls.oid "
|
||||
"LEFT JOIN pg_catalog.pg_namespace nmspc ON cls.relnamespace=nmspc.oid "
|
||||
"LEFT JOIN pg_catalog.pg_am am ON cls.relam=am.oid "
|
||||
"WHERE am.amname='btree' "
|
||||
"AND cls.relpersistence != 't' "
|
||||
"AND cls.relkind != 'I' "
|
||||
"AND (cls.reltablespace IN "
|
||||
"WHERE am.amname='btree' AND cls.relpersistence != 't' AND "
|
||||
"(cls.reltablespace IN "
|
||||
"(SELECT oid from pg_catalog.pg_tablespace where spcname <> 'pg_global') "
|
||||
"OR cls.reltablespace = 0) "
|
||||
"ORDER BY nmspc.nspname DESC",
|
||||
|
@ -38,15 +38,6 @@ class CheckdbTest(ProbackupTest, unittest.TestCase):
|
||||
node.safe_psql(
|
||||
"postgres",
|
||||
"create index on t_heap(id)")
|
||||
|
||||
node.safe_psql(
|
||||
"postgres",
|
||||
"create table idxpart (a int) "
|
||||
"partition by range (a)")
|
||||
|
||||
node.safe_psql(
|
||||
"postgres",
|
||||
"create index on idxpart(a)")
|
||||
|
||||
try:
|
||||
node.safe_psql(
|
||||
|
Loading…
x
Reference in New Issue
Block a user