(8.0.27)
インクリメンタル統計はない模様
(19c)
select dbms_stats.get_prefs('INCREMENTAL',NULL,NULL) from dual;
select dbms_stats.get_prefs('PUBLISH',NULL,NULL) from dual;
select dbms_stats.get_prefs('ESTIMATE_PERCENT',NULL,NULL) from dual;
select dbms_stats.get_prefs('GRANULARITY',NULL,NULL) from dual;
exec dbms_stats.set_global_prefs('INCREMENTAL','TRUE');
次の条件が満たされている場合、表全体ではなく、変更されたパーティションのみをスキャンすることによって、表のグローバルな統計情報が更新されます。
[1]パーティション表のINCREMENTALの値がTRUEに設定されている場合。
[2]パーティション表のPUBLISHの値がTRUEに設定されている場合。
[3]表の統計を収集するときに、ユーザーがESTIMATE_PERCENTにAUTO_SAMPLE_SIZEを、GRANULARITYにAUTOを指定しています。
(14)
https://www.postgresql.org/docs/14/sql-analyze.html
インクリメンタル統計はない
If the specified table is a partitioned table,
both the inheritance statistics of the partitioned table as a whole and statistics of the individual partitions are updated.
(2019)
USE [master]
GO
ALTER DATABASE [test] SET AUTO_CREATE_STATISTICS ON(INCREMENTAL = ON)
GO
select name,is_auto_create_stats_on,is_auto_create_stats_incremental_on from sys.databases