Sebastian Kühner skuehner
Thu Sep 8 19:55:17 PDT 2005
Hello,

I'm trying to execute the following swithcover.sh script:

#!/bin/bash
CLUSTER=sql_cluster5
H1=192.168.1.225
H2=192.168.1.223
U=postgres
DB1=contact
DB2=contact
/usr/local/pgsql/bin/slonik << _END_
cluster name=$CLUSTER;
lock set (id=1, origin=1);
wait for event (origin=1, confirmed=2);
move set (id=1, old origin=1, new origin=2);
wait for event (origin = 1, confirmed = 2);
_END_


...and I'm getting the following error:

<stdin>:2: ERROR: syntax error at or near lock

That means that slonik doesn't recognize the "lock" command?

Thanks!

Sebastian


More information about the Slony1-general mailing list