/[slony-test]/adsl/04_test_replication.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /adsl/04_test_replication.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6 by dpavlin, Sun Feb 11 21:52:48 2007 UTC revision 7 by dpavlin, Tue Feb 13 12:05:42 2007 UTC
# Line 6  $psql -p 5002 -c 'select * from po_mjese Line 6  $psql -p 5002 -c 'select * from po_mjese
6    
7  echo "** insert new data in master **"  echo "** insert new data in master **"
8    
9  dir=/home/dpavlin/private/adsl  $psql -p 5001 -c 'copy spajanja (start_t,stop_t,download,upload,duration,ip) from stdin;' < data/200608.txt
 $dir/fix_date.pl $dir/200608.txt | $psql -p 5001 -c 'copy spajanja (start_t,stop_t,download,upload,duration,ip) from stdin;'  
10    
11  echo "** after new data **"  echo "** after new data **"
12    
# Line 23  done Line 22  done
22  echo "** OK **"  echo "** OK **"
23    
24  echo "** following SHOULD RETURN ERROR! **"  echo "** following SHOULD RETURN ERROR! **"
25  $dir/fix_date.pl $dir/200609.txt | $psql -p 5002 -c 'copy spajanja (start_t,stop_t,download,upload,duration,ip) from stdin;'  $psql -p 5002 -c 'copy spajanja (start_t,stop_t,download,upload,duration,ip) from stdin;' < data/200609.txt

Legend:
Removed from v.6  
changed lines
  Added in v.7

  ViewVC Help
Powered by ViewVC 1.1.26