gpst: %Cmd: Remove it, unused
[gpstools.git] / postgres / Patch / floatingpoint-testing.patch
blobcd78c0d10bdcb0a7f5a2939fbe95f0438900439a
1 Index: create_views.sql
2 ===================================================================
3 --- create_views.sql (revisjon 2221)
4 +++ create_views.sql (arbeidskopi)
5 @@ -122,8 +122,20 @@
6 -- Lister ut events sammen med loggen.
7 CREATE OR REPLACE VIEW ev AS
8 SELECT * FROM (
9 + SELECT 'gps' AS flag, date, (coor[0]::numeric || ',' || coor[1]::numeric)::point as coor, sted || ' (' || dist || ')' AS sted, ele::numeric(8,1), NULL AS descr, avst
10 + FROM logg
11 + -- UNION ALL
12 + -- SELECT 'event' AS flag, date, coor[0] || ',' || coor[1], NULL, NULL, descr AS descr, NULL
13 + -- FROM events
14 + -- UNION ALL
15 + -- SELECT 'pic' AS flag, date, coor[0] || ',' || coor[1], filename, NULL, NULL, NULL
16 + -- FROM pictures
17 + ) AS u
18 + ORDER BY date;
19 +CREATE OR REPLACE VIEW flev AS
20 + SELECT * FROM (
21 SELECT 'gps' AS flag, date, coor, sted || ' (' || dist || ')' AS sted, ele::numeric(8,1), NULL AS descr, avst
22 - FROM logg
23 + FROM rsflytting
24 UNION ALL
25 SELECT 'event' AS flag, date, coor, NULL, NULL, descr AS descr, NULL
26 FROM events
27 @@ -131,7 +143,21 @@
28 SELECT 'pic' AS flag, date, coor, filename, NULL, NULL, NULL
29 FROM pictures
30 ) AS u
31 + WHERE date between '2007-11-01' and '2007-12-01'
32 ORDER BY date;
33 +CREATE OR REPLACE VIEW evmer AS
34 + SELECT * FROM (
35 + SELECT 'gps' AS flag, date, coor, sted || ' (' || dist || ')' AS sted, ele::numeric(8,1), NULL AS descr, avst
36 + FROM rsmerete
37 + UNION ALL
38 + SELECT 'event' AS flag, date, coor, NULL, NULL, descr AS descr, NULL
39 + FROM events
40 + UNION ALL
41 + SELECT 'pic' AS flag, date, coor, filename, NULL, NULL, NULL
42 + FROM pictures
43 + ) AS u
44 + WHERE date between '2007-11-01' and '2007-12-01'
45 + ORDER BY date;
47 CREATE OR REPLACE VIEW wp AS
48 SELECT