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?.
1 rows affected
1 rows affected
1 rows affected
1 rows affected
id | sku | fee |
---|---|---|
1 | ASC | 2 |
2 | CF2 | 3.6 |
3 | RTG | 1.2 |
4 | VHN5 | 3 |
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
id | sku_id | old_fee | new_fee |
---|---|---|---|
1 | 1 | 2 | 3 |
2 | 1 | 3 | 4 |
3 | 1 | 4 | 2.5 |
4 | 2 | 3 | 4 |
5 | 2 | 4 | 1 |
6 | 3 | 1 | 2.4 |
7 | 3 | 2.4 | 3.1 |
8 | 3 | 3.1 | 2 |
9 | 3 | 2 | 0.5 |
10 | 3 | 0.5 | 1 |
id | sku | fee | old_fee_1 | new_fee_1 | old_fee_2 | new_fee_2 |
---|---|---|---|---|---|---|
1 | ASC | 2 | 4 | 2.5 | 3 | 4 |
2 | CF2 | 3.6 | 4 | 1 | 3 | 4 |
3 | RTG | 1.2 | 0.5 | 1 | 2 | 0.5 |
4 | VHN5 | 3 | null | null | null | null |