pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Antonello Piemonte <ap@cyberlab.de>
To: pgsql-admin@postgresql.org
Subject: dbmirror install
Date: Thu, 10 Oct 2002 17:07:38 +0200
Message-ID: <200210101507.g9AF7eZ26136@gg.cyberlab.de> (raw)

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




Message-ID: <200210101507.g9AF7eZ26136@gg.cyberlab.de>
Permalink:  ../200210101507.g9AF7eZ26136@gg.cyberlab.de/
Also on:    postgresql.org/message-id/200210101507.g9AF7eZ26136@gg.cyberlab.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: ap@cyberlab.de
  Subject: Re: dbmirror install
  In-Reply-To: <200210101507.g9AF7eZ26136@gg.cyberlab.de>
  References: <200210101507.g9AF7eZ26136@gg.cyberlab.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox