root/bin/make_analytical_db @ 6045
1 |
#!/bin/sh
|
---|---|
2 |
# Creates analytical DB
|
3 |
|
4 |
selfDir="$(dirname -- "$0")" |
5 |
|
6 |
set -x |
7 |
"$selfDir/psql_verbose_vegbien" <<EOF |
8 |
SELECT make_family_higher_plant_group();
|
9 |
|
10 |
TRUNCATE analytical_stem;
|
11 |
INSERT INTO analytical_stem SELECT * FROM analytical_stem_view;
|
12 |
TRUNCATE analytical_aggregate;
|
13 |
INSERT INTO analytical_aggregate SELECT * FROM analytical_aggregate_view;
|
14 |
TRUNCATE geoscrub_input;
|
15 |
INSERT INTO geoscrub_input SELECT * FROM geoscrub_input_view;
|
16 |
EOF
|