Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id EF19C4760B9 for ; Thu, 10 Oct 2002 11:07:36 -0400 (EDT) Received: from gg.cyberlab.de (gg.cyberlab.de [194.195.219.2]) by postgresql.org (Postfix) with ESMTP id C0E57474E53 for ; Thu, 10 Oct 2002 11:07:35 -0400 (EDT) Received: by gg.cyberlab.de (8.11.6/8.11.6) id g9AF7eZ26136 for pgsql-admin@postgresql.org; Thu, 10 Oct 2002 17:07:40 +0200 (CEST) Message-Id: <200210101507.g9AF7eZ26136@gg.cyberlab.de> Received: (from localhost) by gg.cyberlab.de (MSCAN) id 1/gg.cyberlab.de/smtp-gw/mscan; Thu Oct 10 17:07:39 2002 Content-Type: text/plain; charset="iso-8859-1" From: Antonello Piemonte To: pgsql-admin@postgresql.org Subject: dbmirror install Date: Thu, 10 Oct 2002 17:07:38 +0200 X-Mailer: KMail [version 1.3.1] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/70 X-Sequence-Number: 5928 hello, if anyone has experience with dbmirror.pl please advise: I am installing dbmirror (from contrib tree): I compiled it under the source tree of postgresql-7.3b2 and everything went fine: since I need to test it on a postgres-7.1.3 installation (which does not include dbmirror) I then copied the pending.so (is the result of the "make" issued in postgresql-7.3b2/contrib/dbmirror) to the test server in /usr/lib/pgsql/contrib/dbmirror/pending.so and made a simlink as follows: $ ls -l /usr/local/pgsql/lib/pending.so lrwxrwxrwx 1 root root 42 Oct 10 16:03 /usr/local/pgsql/lib/pending.so -> /usr/lib/pgsql/contrib/dbmirror/pending.so (note that I use redhat7.2 on both machines) then I get this error: $ psql mydb < MirrorSetup.sql ERROR: parser: parse error at or near "trigger" where the first lines of MirrorSetup.sql are: bash-2.05$ cat MirrorSetup.sql CREATE FUNCTION "recordchange" () RETURNS trigger AS '/usr/local/pgsql/lib/pending.so', 'recordchange' LANGUAGE 'C'; ........ I have also set PL/pgSQL $ createlang -l mydb Procedural languages Name | Trusted? | Compiler ---------+----------+---------- plpgsql | t | PL/pgSQL (1 row) what have I missed? thx antonello