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
INSERT 0 12
user_id session_id lat lon trip_id
1 25304 39.984702 116.318417 1
1 25304 39.984683 116.31845 1
1 25304 39.984686 116.318417 1
1 25304 39.984688 116.318385 1
1 20959 40.008304 116.319876 2
1 20959 40.008413 116.319962 2
1 20959 40.007171 116.319458 2
2 55305 39.984094 116.319236 1
2 55305 39.984198 116.319322 1
2 55305 39.984224 116.319402 1
2 34104 40.013867 116.306473 2
2 34104 40.013907 116.306488 2
SELECT 12
ALTER TABLE
UPDATE 12
user_id session_id timestamp lat lon trip_id
1 25304 2008-10-23 02:53:04+01 39.984702 116.318417 1
1 25304 2008-10-23 02:53:10+01 39.984683 116.31845 1
1 25304 2008-10-23 02:53:15+01 39.984686 116.318417 1
1 25304 2008-10-23 02:53:20+01 39.984688 116.318385 1
1 20959 2008-10-24 02:09:59+01 40.008304 116.319876 2
1 20959 2008-10-24 02:10:04+01 40.008413 116.319962 2
1 20959 2008-10-24 02:10:14+01 40.007171 116.319458 2
2 55305 2008-10-23 05:53:05+01 39.984094 116.319236 1
2 55305 2008-10-23 05:53:11+01 39.984198 116.319322 1
2 55305 2008-10-23 05:53:21+01 39.984224 116.319402 1
2 34104 2008-10-23 23:41:04+01 40.013867 116.306473 2
2 34104 2008-10-23 23:41:16+01 40.013907 116.306488 2
SELECT 12