add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
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?.
DROP TABLE
CREATE TABLE
INSERT 0 17
ANALYZE
datum f1 f2 f3
2017-12-31 A A A
2018-01-01 A A A
2018-01-02 A A A
2018-01-03 A A A
2018-01-04 A A A
2018-01-05 A A A
2018-01-06 B B B
2018-01-07 B B B
2018-01-08 B B B
2018-01-09 B B B
2018-01-10 B B B
2018-01-11 A A A
2018-01-12 A A A
2018-01-13 A A A
2018-01-14 A A A
2018-01-15 A A A
2018-01-16 A A A
SELECT 17