From vanderleeden@logicunited.com Wed Aug 20 15:34:21 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id C7B10D1BA6E for ; Wed, 20 Aug 2003 12:34:21 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 92090-04 for ; Wed, 20 Aug 2003 12:34:11 -0300 (ADT) Received: from enron.intra.logicunited.com (unknown [195.27.249.139]) by svr1.postgresql.org (Postfix) with ESMTP id 6D49AD1B9BB for ; Wed, 20 Aug 2003 12:34:10 -0300 (ADT) Received: from TFKHRLEE (pD9EBEA77.dip.t-dialin.net [217.235.234.119]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by enron.intra.logicunited.com (Postfix) with ESMTP id 3CEF91C04EE5; Wed, 20 Aug 2003 17:34:08 +0200 (CEST) Message-ID: <011201c36730$8e270980$2201a8c0@gsr.hp.com> From: "VanderLeeden" To: Cc: "VanderLeeden" Subject: DBMirror - Replicating binary objects of type bytea ? Date: Wed, 20 Aug 2003 17:34:26 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_010F_01C36741.4D607C90" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.8 tagged_above=0.0 required=5.0 tests=HTML_50_60, RCVD_IN_NJABL, RCVD_IN_OSIRUSOFT_COM X-Spam-Level: * X-Archive-Number: 200308/233 X-Sequence-Number: 9954 This is a multi-part message in MIME format. ------=_NextPart_000_010F_01C36741.4D607C90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Anyone has a clue of why the replication using DBMirror (PostgreSQL 7.3.4)= =20 does not replicate correctly if the primary key is of type "bytea" ? Error message from DBMirror.pl is e.g. ERROR: Cannot insert a duplicat= e key into unique index payment_pkey Second question: Is a "manual" failover setup possible and recommended usi= ng DBMirror? Any experiences out there? Thanks, Rudolf VanderLeeden Logic United GmbH, Munich, Germany Phone +4980-249-2933 www.logicunited.com ------=_NextPart_000_010F_01C36741.4D607C90 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Anyone has a clue of why the replication u= sing=20 DBMirror (PostgreSQL 7.3.4)
does not replicate correctly if the primar= y key is=20 of type "bytea" ?
Error message from  DBMirror.pl  is e.g.   ERROR:  Cannot insert a duplicate key int= o=20 unique index payment_pkey
 
Second question:  Is a "manual" failo= ver setup=20 possible and recommended using DBMirror?
Any experiences out there?
 
Thanks,
Rudolf VanderLeeden
 
Logic United GmbH, Munich, Germany
Phone +4980-249-2933
www.logicunited.com
------=_NextPart_000_010F_01C36741.4D607C90-- From andrew@libertyrms.info Thu Aug 21 14:53:09 2003 X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 08557D1BAE5 for ; Thu, 21 Aug 2003 11:53:09 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 34743-06 for ; Thu, 21 Aug 2003 11:53:02 -0300 (ADT) Received: from mail.libertyrms.com (unknown [209.167.124.227]) by svr1.postgresql.org (Postfix) with ESMTP id 0E330D1BB46 for ; Thu, 21 Aug 2003 11:52:58 -0300 (ADT) Received: from [10.1.2.130] (helo=dba2) by mail.libertyrms.com with esmtp (Exim 3.22 #3 (Debian)) id 19pqoB-0000KA-00 for ; Thu, 21 Aug 2003 10:53:03 -0400 Received: by dba2 (Postfix, from userid 1019) id 0DF4DD0B0; Thu, 21 Aug 2003 10:53:03 -0400 (EDT) Date: Thu, 21 Aug 2003 10:53:03 -0400 From: Andrew Sullivan To: pgsql-admin@postgresql.org Subject: Re: DBMirror - Replicating binary objects of type bytea ? Message-ID: <20030821145302.GC9803@libertyrms.info> Mail-Followup-To: Andrew Sullivan , pgsql-admin@postgresql.org References: <011201c36730$8e270980$2201a8c0@gsr.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <011201c36730$8e270980$2201a8c0@gsr.hp.com> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/250 X-Sequence-Number: 9971 On Wed, Aug 20, 2003 at 05:34:26PM +0200, VanderLeeden wrote: > Second question: Is a "manual" failover setup possible and > recommended using DBMirror? I haven't used dbmirror, but I would never[1] fail over automatically from an asynchronous system. Some suggestions on fail over: 1. Make sure your sequences are up to date. This is the sort of thing you need to build a script for in advance. 2. It's good to have a policy about how much data you can afford to lose. If the answer is, "none", you need to invest in some very expensive hardware. A -- ---- Andrew Sullivan 204-4141 Yonge Street Liberty RMS Toronto, Ontario Canada M2P 2A8 +1 416 646 3304 x110