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?.
5 rows affected
the_amount | the_date |
---|---|
200 | 2019-02-11 |
min |
---|
2019-02-11 |
ERROR: column "my_table.the_amount" must appear in the GROUP BY clause or be used in an aggregate function
LINE 1: select the_amount, min(the_date)
^
the_amount | min |
---|---|
200 | 2019-02-11 |
300 | 2019-02-13 |