2 -- File ID: 2d79727a-fafb-11dd-9a1e-000475e441b9
4 BEGIN ISOLATION LEVEL SERIALIZABLE;
6 \echo ================ Oppdater name og dist ================
8 UPDATE logg SET name = clname(coor), dist = cldist(coor)
10 SELECT lastname FROM stat
11 WHERE lastupdate IS NOT NULL
12 ORDER BY lastupdate DESC LIMIT 1
16 INSERT INTO stat (lastupdate, lastname) VALUES (
18 (SELECT max(date) FROM logg)
20 \echo ================ Oppdater wayp.numpoints ================
21 UPDATE wayp SET numpoints = numpoints(name);