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?.
id | rnd |
---|---|
2 | 0.219554797746241 |
id | rnd | dummy |
---|---|---|
4 | 0.911946333944798 | 1.0 |
ERROR: missing FROM-clause entry for table "w"
LINE 2: ...nsert into t(rnd) select random() from w returning *, w.rnd;
^