/[slony-test]/adsl/test_difference.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

Contents of /adsl/test_difference.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations)
Sun Feb 11 21:52:48 2007 UTC (12 years, 4 months ago) by dpavlin
File MIME type: application/x-sh
File size: 552 byte(s)
initial import

1
2 #echo "** sync"
3 #slonik_execute_script -c 'select now();' 1 | slonik
4
5 op='!='
6 echo $0 $1 | grep '_no_' >/dev/null && op='=='
7
8 echo "name [$0] op [$op]"
9
10 psql="sudo -u postgres psql adsl"
11 master="`$psql -p 5001 -c 'select * from po_mjesecima'`"
12 echo -e "## MASTER\n$master"
13 slave=''
14 oldslave=''
15 while [ "$master" $op "$slave" ] ; do
16 slave="`$psql -p 5002 -c 'select * from po_mjesecima'`"
17 if [ "$oldslave" != "$slave" ]
18 then
19 echo -e "$op SLAVE\n$slave"
20 else
21 echo -n "."
22 fi
23 oldslave="$slave"
24 sleep 2
25 done
26
27 echo "** OK -- master $op slave **"

Properties

Name Value
svn:executable

  ViewVC Help
Powered by ViewVC 1.1.26