Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 01C174768BA for ; Thu, 17 Oct 2002 23:40:41 -0400 (EDT) Received: from relay1.uswest.net (relay3.uswest.net [63.226.138.11]) by postgresql.org (Postfix) with SMTP id 1957F476894 for ; Thu, 17 Oct 2002 23:40:40 -0400 (EDT) Received: (qmail 180 invoked by uid 0); 18 Oct 2002 03:40:44 -0000 Received: from unknown (HELO lyric.ofsloans.com) (209.180.142.225) by relay3.uswest.net with SMTP; 18 Oct 2002 03:40:44 -0000 Subject: Re: Using oid with RServ w/ Postgresql 7.2 From: Will LaShell To: Tom Lane Cc: "pgsql-admin@postgresql.org" In-Reply-To: <13546.1034906114@sss.pgh.pa.us> References: <1034888522.3498.3.camel@lyric.ofsloans.com> <13546.1034906114@sss.pgh.pa.us> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-y+BkX1Qfta/cqOSWpIia" X-Mailer: Ximian Evolution 1.0.3 (1.0.3-6) Date: 17 Oct 2002 20:40:44 -0700 Message-Id: <1034912444.5172.17.camel@lyric.ofsloans.com> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/133 X-Sequence-Number: 5991 --=-y+BkX1Qfta/cqOSWpIia Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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. >=20 > 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. >=20 > 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. >=20 > My advice would be to add a serial8 column to each table and use that > as the replication primary key. >=20 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.=20=20=20 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 --=-y+BkX1Qfta/cqOSWpIia Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQA9r4K8Zr3R5kgOZd0RAsRMAJsE10Jo3uAdFQCHVyfYnGCXdvO/9ACfUY+R kWuNyvVzop36UHvonhXyHtQ= =jfKz -----END PGP SIGNATURE----- --=-y+BkX1Qfta/cqOSWpIia--