1 Index: create_funcs.sql
2 ===================================================================
3 --- create_funcs.sql (revision 3000)
4 +++ create_funcs.sql (working copy)
7 $$ LANGUAGE SQL; -- }}}
9 +-- prevpoint(): Returner id for forrige punkt i logg-tabellen.
10 +CREATE OR REPLACE FUNCTION prevpoint(currpoint integer) RETURNS integer -- {{{
16 + SELECT id FROM logg WHERE date < (
17 + SELECT date FROM logg where id = currpoint
24 +$$ LANGUAGE plpgsql; -- }}}
26 -- findpos(): Beregn koordinater for et tidspunkt som ligger mellom to trackpunkter.
27 CREATE OR REPLACE FUNCTION findpos(currtime timestamptz) RETURNS point AS $$ -- {{{