1 Index: postgres/create_funcs.sql
2 ===================================================================
3 --- postgres/create_funcs.sql (revisjon 2218)
4 +++ postgres/create_funcs.sql (arbeidskopi)
7 currsted = clname(currpos);
8 currdist = cldist(currpos);
9 - RETURN(currtime || ' - ' || currlat::text || ' ' || currlon::text || ' - ' || currsted || ' - ' || currdist);
10 + RAISE NOTICE 'time = %, lat = %, lon = %, sted = %, dist = %', currtime::text, currlat::text, currlon::text, currsted::text, currdist::text;
11 + RETURN(currtime::text || ' - ' || currlat::text || ' ' || currlon::text || ' - ' || currsted::text || ' - ' || currdist::text);
15 Index: postgres/update_things.sql
16 ===================================================================
17 --- postgres/update_things.sql (revisjon 2218)
18 +++ postgres/update_things.sql (arbeidskopi)
23 +\echo ================ Oppdater koordinater for events ================
25 +UPDATE events SET coor = findpos(date)
29 +\echo ================ Rund av events til fem desimaler ================
31 +UPDATE events SET coor = point(
32 + round(coor[0]::numeric, 5),
33 + round(coor[1]::numeric, 5)
37 \echo ================ Fjern duplikater i events ================