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?.
7 rows affected
id lon lat near_id near_lon near_lat
1 10.111 20.415 3 10.110 20.414
3 10.110 20.414 1 10.111 20.415
11 12.111 20.415 12 12.112 20.415
12 12.112 20.415 11 12.111 20.415
12 12.112 20.415 13 12.113 20.414
13 12.113 20.414 12 12.112 20.415
id lon lat neighbours
1 10.111 20.415 {3}
3 10.110 20.414 {1}
11 12.111 20.415 {12}
12 12.112 20.415 {11,13}
13 12.113 20.414 {12}
id lon lat neighbours
1 10.111 20.415 {3}
3 10.110 20.414 {1}
11 12.111 20.415 {12}
12 12.112 20.415 {11,13}
13 12.113 20.414 {12}