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?.
SELECT 1
SELECT 2
stone_data | ?column? | ?column? | sku |
---|---|---|---|
[{"SKU": "abc123", "Quantity": 2}, {"SKU": "def456", "Quantity": 1}, {"SKU": "ghi789", "Quantity": 3}] | def456 | 1 | def456 |
[{"SKU": "abc123", "Quantity": 2}, {"SKU": "def456", "Quantity": 1}, {"SKU": "ghi789", "Quantity": 3}] | ghi789 | 3 | null |
[{"SKU": "abc123", "Quantity": 2}, {"SKU": "def456", "Quantity": 1}, {"SKU": "ghi789", "Quantity": 3}] | abc123 | 2 | abc123 |
SELECT 3