Re: [GENERAL] OID question

2006-02-01 Thread Chris Kratz
Thank you Tom for your concise response. Your explanation is very helpfull. We were aware of the wraparound issues, but this has worked so well for us that we haven't explored changing it yet. Having a unique identifier per row is most usefull in our situation and we didn't think we were anyw

Re: [GENERAL] OID question

2006-02-01 Thread Tom Lane
Chris Kratz <[EMAIL PROTECTED]> writes: > We aren't sure at this point if the problem we are having has to do with the > fact that we drop and reload the test db quite often and so we are running > into OID wraparound, or if it has to do with the fact that we recently went > to 8.1 on this test

[GENERAL] OID question

2006-02-01 Thread Chris Kratz
Hello all, We have a live server running on PG 8.0.3 which we backup on a regular bases by doing a pg_dumpall --oids. We have a test server currently running 8.1.1 where we reload that dumpall using psql. Now we have a history tracking system in the db which via triggers and rules keeps track

Re: [GENERAL] OID Question

2004-11-11 Thread Terry Lee Tucker
Many thanks to all who have responded. I hope to be as helpful to the list someday as each of you have been. Thanks... On Thursday 11 November 2004 10:04 am, Terry Lee Tucker saith: > Greetings, > > Here is a simple question: > > Is it ok to put a unique index on the oid for my tables? We are in

Re: [NOVICE] [GENERAL] OID Question

2004-11-11 Thread Frank Bax
At 03:34 PM 11/11/04, Geoffrey wrote: Bruno Wolff III wrote: On Thu, Nov 11, 2004 at 10:04:30 -0500, Terry Lee Tucker <[EMAIL PROTECTED]> wrote: Greetings, Here is a simple question: Is it ok to put a unique index on the oid for my tables? We are in the process Yes, but you may occasionally have in

Re: [NOVICE] [GENERAL] OID Question

2004-11-11 Thread Bruno Wolff III
On Thu, Nov 11, 2004 at 15:34:14 -0500, Geoffrey <[EMAIL PROTECTED]> wrote: > > "Whenever an application makes use of OIDs to identify specific rows of > a table, it is recommended to create a unique constraint on the oid > column of that table, to ensure that OIDs in the table will indeed >

Re: [NOVICE] [GENERAL] OID Question

2004-11-11 Thread Martijn van Oosterhout
On Thu, Nov 11, 2004 at 03:34:14PM -0500, Geoffrey wrote: > So this prompts a question regarding the documentation. I'm assuming > that I can address the wrap-around issue based on the following found > under "Notes" section of the "Create Table" document: > > "Whenever an application makes use

Re: [NOVICE] [GENERAL] OID Question

2004-11-11 Thread Geoffrey
Bruno Wolff III wrote: On Thu, Nov 11, 2004 at 10:04:30 -0500, Terry Lee Tucker <[EMAIL PROTECTED]> wrote: Greetings, Here is a simple question: Is it ok to put a unique index on the oid for my tables? We are in the process Yes, but you may occasionally have insert failures if the oid wraps around

Re: [GENERAL] OID Question

2004-11-11 Thread Richard Huxton
Terry Lee Tucker wrote: Greetings, Here is a simple question: Is it ok to put a unique index on the oid for my tables? We are in the process of moving from Progress Software to PostgreSQL. In the Progress world, you can always uniquely, and quickly find a record by using their version of oid, wh

Re: [GENERAL] OID Question

2004-11-11 Thread Bruno Wolff III
On Thu, Nov 11, 2004 at 10:04:30 -0500, Terry Lee Tucker <[EMAIL PROTECTED]> wrote: > Greetings, > > Here is a simple question: > > Is it ok to put a unique index on the oid for my tables? We are in the > process Yes, but you may occasionally have insert failures if the oid wraps around and

Re: [GENERAL] OID Question

2004-11-11 Thread Uwe C. Schroeder
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thursday 11 November 2004 07:04 am, Terry Lee Tucker wrote: > Greetings, > > Here is a simple question: > > Is it ok to put a unique index on the oid for my tables? We are in the > process of moving from Progress Software to PostgreSQL. In the Progr

Re: [GENERAL] OID Question

2004-11-11 Thread Stephan Szabo
On Thu, 11 Nov 2004, Terry Lee Tucker wrote: > Is it ok to put a unique index on the oid for my tables? We are in the process > of moving from Progress Software to PostgreSQL. In the Progress world, you > can always uniquely, and quickly find a record by using their version of oid, > which is reci

[GENERAL] OID Question

2004-11-11 Thread Terry Lee Tucker
Greetings, Here is a simple question: Is it ok to put a unique index on the oid for my tables? We are in the process of moving from Progress Software to PostgreSQL. In the Progress world, you can always uniquely, and quickly find a record by using their version of oid, which is recid. I remem

Re: [GENERAL] OID question

2000-03-16 Thread Ed Loehr
Chris Sutton wrote: > > I would like to use the oid as a unique key for a table but in creating > a test table and playing around with inserts, things don't seem to be > working as I thought they would. > > Where am I going wrong? There is a hidden column named 'oid'. Try "select oid, desc fr

[GENERAL] OID question

2000-03-16 Thread Chris Sutton
I would like to use the oid as a unique key for a table but in creating a test table and playing around with inserts, things don't seem to be working as I thought they would. create table test ( key oid, desc varchar(30)); Then I do an insert insert into test (desc) values ('inf