Skip site navigation (1) Skip section navigation (2)

dbmirror (replication)

From: "Burtenshaw, John J(dot)" <JBurtenshaw(at)cooperstandard(dot)com>
To: "'pgsql-patches(at)postgresql(dot)org'" <pgsql-patches(at)postgresql(dot)org>
Subject: dbmirror (replication)
Date: 2004-03-26 20:45:51
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
I uploaded from pgsql-server/contrib./dbmirror on   I'm not
sure who the package is being maintained or not but I may have found a small
bug which I have a fix for.  I use SERIAL types (sequences) to create unique
number id's in my database and got several errors when they were being
replicated such as:

"Error sending query  165865 to r3serverERROR: relation "public" does not
exist" select setval(public.mix_id_seq,3) at line 769

This error occurred when operating on the following table: Create table mix
	description varchar(40)
Using postgresql 7.4.1

I found that the public.mix_id_seq needed single quotes (i.e. '') around it,
But this gave an additional error which returned PGRES_TUBPLES_OK instead of
PGRES_COMMAND_OK and there for failed the command.  Attached is my fix to
Line 661 has the addition of the single quotes around the command and line
696 has the addition of PGRES_TUPLES_OK.

John Burtenshaw
Cooper-Standard Automotive

pgsql-patches by date

Next:From: Claudio NatoliDate: 2004-03-26 22:34:37
Subject: Re: APC/socket fix (final?)
Previous:From: Kris JurkaDate: 2004-03-26 20:23:48
Subject: compiling with ssl without thread safety still broken

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group