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?.
quote_date | security_id | tr | accum_index |
---|---|---|---|
1986-01-10 | 1 | null | 1000.0000000000000000 |
1986-01-13 | 1 | -0.026595745 | 973.404255000000000000 |
1986-01-14 | 1 | 0.005464481 | 978.7234040567666550000 |
1986-01-15 | 1 | -0.016304348 | 962.7659570812805201000 |
1986-01-16 | 1 | 0 | 962.7659570812805201000 |
1986-01-17 | 1 | 0 | 962.7659570812805201000 |
1986-01-20 | 1 | 0 | 962.7659570812805201000 |
1986-01-21 | 1 | 0.005524862 | 968.0851061324525177000 |
1986-01-22 | 1 | -0.005494506 | 962.7659567082971205000 |
1986-01-23 | 1 | 0 | 962.7659567082971205000 |
1986-01-24 | 1 | -0.005524862 | 957.4468076591858047000 |
1986-01-27 | 1 | 0.005555556 | 962.7659570161576404000 |
1986-01-28 | 1 | 0 | 962.7659570161576404000 |
1986-01-29 | 1 | 0 | 962.7659570161576404000 |
1986-01-30 | 1 | 0 | 962.7659570161576404000 |
1986-01-31 | 1 | 0.027624309 | 989.3617013074526973000 |
1986-02-03 | 1 | 0.016129032 | 1005.3191478474150442000 |
1986-02-04 | 1 | 0.042328041 | 1047.8723379555854904000 |
1986-02-05 | 1 | 0.04568528 | 1095.7446791193410408000 |
SELECT 19