@@ -27,3 +27,39 @@ PostgreSQL может никогда не использовать некото
2727## Поддержка секционированных таблиц  
2828
2929Поддерживает секционированные таблицы. Проверка выполняется на каждой секции.
30+ 
31+ ## Скрипт для воспроизведения  
32+ 
33+ ``` sql 
34+ create  schema  if  not exists demo;
35+ 
36+ create  table  if  not exists demo." duplicated_indexes" 
37+ (
38+     id int  not null  primary key ,
39+     first_name text ,
40+     last_name text 
41+ );
42+ 
43+ create  index  if  not exists i_duplicated_indexes_last_first
44+                     on  demo." duplicated_indexes" 
45+ create  index  if  not exists i_duplicated_indexes_last_not_deleted
46+                     on  demo." duplicated_indexes" where  not deleted;
47+                     
48+ create  table  if  not exists demo." duplicated_indexes_partitioned" 
49+ (
50+     id int  not null  primary key ,
51+     first_name text ,
52+     last_name text 
53+ ) partition by range (id);
54+ 
55+ create  index  if  not exists i_duplicated_indexes_last_first
56+                     on  demo." duplicated_indexes_partitioned" 
57+ create  index  if  not exists i_duplicated_indexes_last_not_deleted
58+                     on  demo." duplicated_indexes_partitioned" where  not deleted;
59+ 
60+ create  table  if  not exists demo." duplicated_indexes_partitioned_1_10" 
61+     partition of demo." duplicated_indexes_partitioned" 
62+     for values  from  (1 ) to (10 );
63+ ``` 
64+ Перед проверкой нужно добавить в таблицы данные.
65+ 
0 commit comments