2 File ID: 31b5014c-fafb-11dd-ab52-000475e441b9
4 For å liste ut de nærmeste trackpunktene for en posisjon:
6 SELECT date, coor, name, dist, (point(60.30738,5.34574) <-> coor)::numeric AS avs FROM logg ORDER BY avs LIMIT 100;
8 Tida det tar for å oppdatere:
10 gps=# VACUUM ANALYZE ;
13 gps=# UPDATE logg set name = clname(coor);
16 gps=# DROP INDEX log_name_idx ;
19 gps=# UPDATE logg set name = clname(coor);
22 gps=# CREATE INDEX log_name_idx ON logg (name);
27 gps=# UPDATE logg SET name = clname(coor), dist = cldist(coor);