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?.
now
2020-12-08 17:52:28.281885+00
xx
1
1
now
2020-12-08 17:52:30.286102+00
a b xx
1 0 null
2 2 null
3 3 null
now
2020-12-08 17:52:30.286676+00
a b xx
1 1 null
2 2 1
3 3 1
now
2020-12-08 17:52:33.296075+00
ERROR:  division by zero
CONTEXT:  SQL function "xx" statement 1

now
2020-12-08 17:52:34.305121+00