By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Help with an interesting Postgres question: Why isn't an Index Only Scan used on a partition accessed via the parent table?.
n | lfd_prod | lfd_prod_int |
---|---|---|
1 | 1 | 1 |
2 | 2 | 2 |
3 | 6 | 6 |
4 | 24 | 24 |
5 | 120 | 120 |
6 | 720 | 720 |
7 | 5040 | 5040 |
8 | 40320 | 40320 |
9 | 362880 | 362880 |
10 | 3628800.00000001 | 3628800 |