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?.
CREATE TABLE
id rnd
2 0.713572988286614
INSERT 0 1
id rnd dummy
4 0.677024329081178 1.0
INSERT 0 1
ERROR:  missing FROM-clause entry for table "w"
LINE 2: ...nsert into t(rnd) select random() from w returning *, w.rnd;
                                                                 ^
rnd rnd
0.841886529233307 0.333116528112441
SELECT 1
id rnd
1 0.223235941492021
2 0.713572988286614
3 0.76253055408597
4 0.677024329081178
5 0.841886529233307
6 0.333116528112441
SELECT 6