5 refresh_materialized_markerview.pl - run the create_materialized_markerview postgres function that rebuilds the unified marker materialized view
9 refresh_materialized_markerview.pl -H [database host] -D [database name] -U [database username] -P [database password]
15 -U the database username
16 -P the database password
18 This script will rebuild the materialized_markerview table and refresh its contents
22 Bryan Ellerbrock <bje24@cornell.edu>
23 David Waring <djw64@cornell.edu> - modified from refresh_matviews.pl script
32 our ($opt_H, $opt_D, $opt_U, $opt_P);
35 print STDERR
"Connecting to database...\n";
36 my $dsn = 'dbi:Pg:database='.$opt_D.";host=".$opt_H.";port=5432";
37 my $dbh = DBI
->connect($dsn, $opt_U, $opt_P);
40 print STDERR
"Refreshing materialized_markerview . . . " . localtime() . "\n";
42 my $q = "SELECT public.create_materialized_markerview(true);";
43 my $h = $dbh->prepare($q);
46 print STDERR
"materialized_markerview refreshed! " . localtime() . "\n";
53 print STDERR
"Done, exiting refresh_matviews.pl \n";