Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 999D6475AA1 for ; Fri, 18 Oct 2002 11:27:56 -0400 (EDT) Received: from mail-relay.trade-india.com (mail-relay.trade-india.com [203.196.129.235]) by postgresql.org (Postfix) with SMTP id 5D089476A10 for ; Fri, 18 Oct 2002 11:27:42 -0400 (EDT) Received: (qmail 2956 invoked from network); 18 Oct 2002 15:15:13 -0000 Received: from news1.trade-india.com (HELO www.trade-india.com) (130.94.20.27) by infocom-236-129-del.trade-india.com with SMTP; 18 Oct 2002 15:15:13 -0000 Received: (qmail 5397 invoked by uid 99); 18 Oct 2002 15:27:18 -0000 Received: from 203.90.68.63 (SquirrelMail authenticated user mallah) by mail.trade-india.com with HTTP; Fri, 18 Oct 2002 20:57:18 +0530 (IST) Message-ID: <3453.203.90.68.63.1034954838.squirrel@mail.trade-india.com> Date: Fri, 18 Oct 2002 20:57:18 +0530 (IST) Subject: Re: Using oid with RServ w/ Postgresql 7.2 From: To: In-Reply-To: <1034912444.5172.17.camel@lyric.ofsloans.com> References: <1034888522.3498.3.camel@lyric.ofsloans.com> <13546.1034906114@sss.pgh.pa.us> <1034912444.5172.17.camel@lyric.ofsloans.com> X-Priority: 3 Importance: Normal X-MSMail-Priority: Normal Cc: , X-Mailer: SquirrelMail (version 1.2.6) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/150 X-Sequence-Number: 6008 Hmmm, you may consider contrib/dbmirror which provides replication without having to add any new column. but you still need to have at least one column as a "PRIMARY KEY". I am trusting it in one of my production systems. Regds Mallah. > On Thu, 2002-10-17 at 18:55, Tom Lane wrote: >> Will LaShell writes: >> > My question would then be, are there any problems/reasons or hints with using the oid field >> > as the field that the rserv trigger is set on? We will be using rserv in a production >> > environment so I'm looking at this as not just an academic solution but a real world one. >> >> This is risky for a long-lived database. Things will work fine until the OID counter wraps >> around (ie, more than 4 billion rows inserted into your database). After that you have a risk >> of OID collisions. >> >> You can prevent the worst problems by installing a unique index on OID on each replicated >> table; but then you may occasionally get unexpected "duplicate key" errors. >> >> My advice would be to add a serial8 column to each table and use that as the replication >> primary key. >> > Hrmm, yea, I guess I was hoping to avoid the problem of adding a column to all of our tables > that didn't really serve a purpose outside of being a replication id. > > Is rserv going to be moving into the core of Postgresql as the > replication system? If not, what type of replication is planned to be done. I know that you > all are working on it and it is probably(?) your most requested feature next to point in time > recovery. > > Does anyone know why rserve doesn't support/use multi-field keys for the replication id? Or the > primary key if one is defined? I assume its for ease of coding? > > Sincerely, > Will LaShell ----------------------------------------- Get your free web based email at trade-india.com. "India's Leading B2B eMarketplace.!" http://www.trade-india.com/