From gsmith@eurocom.od.ua Mon May 1 09:36:08 2000 Received: from Main.eurocom.od.ua (root@Main.EuroCom.Od.UA [212.15.128.6]) by hub.org (8.9.3/8.9.3) with ESMTP id FAA23802 for ; Mon, 1 May 2000 05:36:08 -0400 (EDT) (envelope-from gsmith@eurocom.od.ua) Received: from eurocom.od.ua (FarHost.EuroCom.Od.UA [212.15.128.42]) by Main.eurocom.od.ua (8.10.0/8.10.0) with ESMTP id e419ZrU30949 for ; Mon, 1 May 2000 12:35:53 +0300 Message-ID: <390D5016.69A30C10@eurocom.od.ua> Date: Mon, 01 May 2000 12:36:22 +0300 From: "Vladimir V. Zolotych" X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.5-15 i686) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: OID Content-Type: multipart/alternative; boundary="------------7543574C1B745E68898734DF" X-Archive-Number: 200005/1 --------------7543574C1B745E68898734DF Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Hello all, Forgive me silly question (two of them): 1) Could OID = 0? 2) What happens when OID reaches its upper bound (unsigned int)? Thanks -- Vladimir Zolotych gsmith@eurocom.od.ua --------------7543574C1B745E68898734DF Content-Type: text/html; charset=koi8-r Content-Transfer-Encoding: 7bit
  Hello all,
Forgive me silly question (two of them):
1) Could OID = 0?
2) What happens when OID reaches its upper bound (unsigned int)?
  Thanks
-- 
Vladimir Zolotych                         gsmith@eurocom.od.ua
  --------------7543574C1B745E68898734DF-- From pgman@candle.pha.pa.us Mon May 1 15:54:35 2000 Received: from candle.pha.pa.us (root@s5-03.ppp.op.net [209.152.195.67]) by hub.org (8.9.3/8.9.3) with ESMTP id LAA91004 for ; Mon, 1 May 2000 11:54:35 -0400 (EDT) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.9.0/8.9.0) id LAA19110; Mon, 1 May 2000 11:42:49 -0400 (EDT) From: Bruce Momjian Message-Id: <200005011542.LAA19110@candle.pha.pa.us> Subject: Re: OID In-Reply-To: <390D5016.69A30C10@eurocom.od.ua> from "Vladimir V. Zolotych" at "May 1, 2000 12:36:22 pm" To: "Vladimir V. Zolotych" Date: Mon, 1 May 2000 11:42:49 -0400 (EDT) CC: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL72 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200005/2 [Charset koi8-r unsupported, filtering to ASCII...] > Hello all, > > Forgive me silly question (two of them): > > 1) Could OID = 0? No, zero is an invalid id. > > 2) What happens when OID reaches its upper bound (unsigned int)? It will take decades, we think. Call us when it happens. :-) Seriously, it is unlikely to happen, so we are not currently concerned about it. I will add this to the FAQ. -- Bruce Momjian | http://www.op.net/~candle pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026 From jkanter@virginia.edu Fri Aug 16 14:18:33 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0C8024759CD for ; Fri, 16 Aug 2002 10:18:33 -0400 (EDT) Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by postgresql.org (Postfix) with SMTP id C69834759AF for ; Fri, 16 Aug 2002 10:18:31 -0400 (EDT) Received: from smtp.mail.virginia.edu by mail.virginia.edu id aa10370; 16 Aug 2002 10:18 EDT Received: from jlk3xpc (d-128-19-222.bootp.Virginia.EDU [128.143.19.222]) by smtp.mail.Virginia.EDU (8.9.3/8.9.3) with SMTP id KAA26680 for ; Fri, 16 Aug 2002 10:18:34 -0400 Message-ID: <00f301c2452f$ebbb3810$de138f80@virginia.edu> From: Jodi Kanter To: Postgres Admin List Subject: OID Date: Fri, 16 Aug 2002 10:19:23 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00F0_01C2450E.6484D200" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/192 X-Sequence-Number: 5307 This is a multi-part message in MIME format. ------=_NextPart_000_00F0_01C2450E.6484D200 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Can anyone point me to some documentation on the use of OIDs? Why might I n= eed them? How to remove them in version 7.2? ..etc... Thanks Jodi Kanter _______________________________ Jodi L Kanter BioInformatics Database Administrator University of Virginia (434) 924-2846 jkanter@virginia.edu =20 =20 =20 ------=_NextPart_000_00F0_01C2450E.6484D200 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Can anyone point me to some documentati= on on=20 the use of OIDs? Why might I need them? How to remove them in version 7.2?= =20 ..etc...
Thanks
Jodi Kanter

_______________________________
Jodi=20 L Kanter
BioInformatics Database Administrator
University of=20 Virginia
(434) 924-2846
jkanter@virginia.edu

 

 

 

<= /DIV> ------=_NextPart_000_00F0_01C2450E.6484D200-- From jkanter@virginia.edu Fri Aug 16 20:24:15 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3B76D4761CD for ; Fri, 16 Aug 2002 16:24:15 -0400 (EDT) Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by postgresql.org (Postfix) with SMTP id 9A5594761B2 for ; Fri, 16 Aug 2002 16:24:14 -0400 (EDT) Received: from smtp.mail.virginia.edu by mail.virginia.edu id aa10049; 16 Aug 2002 16:24 EDT Received: from jlk3xpc (d-128-19-222.bootp.Virginia.EDU [128.143.19.222]) by smtp.mail.Virginia.EDU (8.9.3/8.9.3) with SMTP id QAA29150 for ; Fri, 16 Aug 2002 16:24:14 -0400 Message-ID: <01e701c24563$00413ef0$de138f80@virginia.edu> From: Jodi Kanter To: Postgres Admin List Subject: Fw: OID Date: Fri, 16 Aug 2002 16:25:02 -0400 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01E4_01C24541.790E0D30" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/198 X-Sequence-Number: 5313 This is a multi-part message in MIME format. ------=_NextPart_000_01E4_01C24541.790E0D30 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Does anyone have a comment on the email below? Is there a general consensus= on whether or not to use OIDs with version 7.2? Thanks Jodi ----- Original Message -----=20 From: Jodi Kanter=20 To: Postgres Admin List=20 Sent: Friday, August 16, 2002 10:19 AM Subject: OID Can anyone point me to some documentation on the use of OIDs? Why might I n= eed them? How to remove them in version 7.2? ..etc... Thanks Jodi Kanter _______________________________ Jodi L Kanter BioInformatics Database Administrator University of Virginia (434) 924-2846 jkanter@virginia.edu =20 =20 =20 ------=_NextPart_000_01E4_01C24541.790E0D30 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Does anyone have a comment on the email= below?=20 Is there a general consensus on whether or not to use OIDs with version=20 7.2?
Thanks
Jodi
 
----- Original Message -----=20
From: Jodi Kant= er=20
Sent: Friday, August 16, 2002 10:19 AM
Subject: OID

Can anyone point me to some documentati= on on=20 the use of OIDs? Why might I need them? How to remove them in version 7.2?= =20 ..etc...
Thanks
Jodi Kanter

_______________________________
Jodi=20 L Kanter
BioInformatics Database Administrator
University of=20 Virginia
(434) 924-2846
jkanter@virginia.edu

 

 

 

<= /DIV> ------=_NextPart_000_01E4_01C24541.790E0D30-- From inbox@bucksvsbytes.com Fri Aug 16 20:34:44 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 779C94750F5 for ; Fri, 16 Aug 2002 16:34:44 -0400 (EDT) Received: from beamer (hvc-66-67-47-226.hvc.rr.com [66.67.47.226]) by postgresql.org (Postfix) with ESMTP id 8ADF2474E49 for ; Fri, 16 Aug 2002 16:34:43 -0400 (EDT) Received: from BEAMER [192.168.2.252] by beamer with SMTPBeamer v3.31 ; Fri, 16 Aug 2002 16:34:08 -0400 Message-ID: <3D5D61C0.2070908@bucksvsbytes.com> Date: Fri, 16 Aug 2002 16:34:08 -0400 From: John Gunther User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: Postgres Admin List Subject: Re: Fw: OID References: <01e701c24563$00413ef0$de138f80@virginia.edu> Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/199 X-Sequence-Number: 5314 If you need a unique, arbitrary ID for each record in your tables -- which is almost always a good thing to have, the OID does the job automatically. It has the additional benefit of being unique in the entire database. The only problem I have is if records are imported from other databases, in which case the OID is changed or at risk of being duplicated. If you assign your own unique ID you can ensure that merged records preserve their ID. I advise using the unique ID only internally and never having a user enter or reference it.

Jodi Kanter wrote:
Does anyone have a comment on the email below? Is there a general consensus on whether or not to use OIDs with version 7.2?
Thanks
Jodi
 
----- Original Message -----
Sent: Friday, August 16, 2002 10:19 AM
Subject: OID

Can anyone point me to some documentation on the use of OIDs? Why might I need them? How to remove them in version 7.2? ..etc...
Thanks
Jodi Kanter

_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu


 

 

 


From mail@joeconway.com Fri Aug 16 20:41:44 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3F5C2475BEF for ; Fri, 16 Aug 2002 16:41:44 -0400 (EDT) Received: from joeconway.com (unknown [63.210.180.150]) by postgresql.org (Postfix) with ESMTP id 74B94475A2E for ; Fri, 16 Aug 2002 16:41:43 -0400 (EDT) Received: from [206.19.64.3] (account jconway HELO joeconway.com) by joeconway.com (CommuniGate Pro SMTP 3.5.9) with ESMTP-TLS id 1250137; Fri, 16 Aug 2002 13:30:30 -0700 Message-ID: <3D5D6354.4060507@joeconway.com> Date: Fri, 16 Aug 2002 13:40:52 -0700 From: Joe Conway User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jodi Kanter Cc: Postgres Admin List Subject: Re: Fw: OID References: <01e701c24563$00413ef0$de138f80@virginia.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/200 X-Sequence-Number: 5315 Jodi Kanter wrote: > Does anyone have a comment on the email below? Is there a general > consensus on whether or not to use OIDs with version 7.2? > > Can anyone point me to some documentation on the use of OIDs? Why might > I need them? How to remove them in version 7.2? ..etc... I think you're best to avoid using them. They are primarily for internal system use. If you need an incrementing integer field, create your own with SERIAL, or integer field and a sequence. To create a table without oids, see: http://www.postgresql.org/idocs/index.php?sql-createtable.html Joe From dan@netcandor.net Sun Aug 18 17:30:46 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E03DB476088 for ; Sun, 18 Aug 2002 13:30:46 -0400 (EDT) Received: from optimus.papazan.net (dsl092-116-052.nyc2.dsl.speakeasy.net [66.92.116.52]) by postgresql.org (Postfix) with SMTP id 0024C4760DC for ; Sun, 18 Aug 2002 13:30:46 -0400 (EDT) Received: (qmail 23179 invoked from network); 18 Aug 2002 17:13:16 -0000 Received: from dsl092-116-061.nyc2.dsl.speakeasy.net (HELO APELINQ) (66.92.116.61) by optimus.papazan.net with SMTP; 18 Aug 2002 17:13:16 -0000 Message-ID: <027101c246dc$136dfd40$f60010ac@netcandor.net> From: "Daniel L Banta" To: "pgsql-admin" References: <01e701c24563$00413ef0$de138f80@virginia.edu> <3D5D6354.4060507@joeconway.com> Subject: Re: Fw: OID Date: Sun, 18 Aug 2002 13:24:15 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/206 X-Sequence-Number: 5321 Jodi, > How to remove them in version 7.2? Create the table using WITHOUT OIDS. Example. CREATE TABLE users ( user_id serial NOT NULL, user_name varchar(20) NOT NULL, passwd varchar(32) NOT NULL, CONSTRAINT pk_user_id PRIMARY KEY(user_id) ) WITHOUT OIDS; Take Care. Dan ----- Original Message ----- From: "Joe Conway" To: "Jodi Kanter" Cc: "Postgres Admin List" Sent: Friday, August 16, 2002 16.40 Subject: Re: [ADMIN] Fw: OID > Jodi Kanter wrote: > > Does anyone have a comment on the email below? Is there a general > > consensus on whether or not to use OIDs with version 7.2? > > > > > > > Can anyone point me to some documentation on the use of OIDs? Why might > > I need them? How to remove them in version 7.2? ..etc... > > I think you're best to avoid using them. They are primarily for internal > system use. If you need an incrementing integer field, create your own > with SERIAL, or integer field and a sequence. > > To create a table without oids, see: > http://www.postgresql.org/idocs/index.php?sql-createtable.html > > Joe > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org > From jules.alberts@arbodienst-limburg.nl Mon Aug 19 07:12:04 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 4D62747590F for ; Mon, 19 Aug 2002 03:12:04 -0400 (EDT) Received: from virtual1.giganet.nl (tarantula.giganet.nl [212.125.143.1]) by postgresql.org (Postfix) with ESMTP id A9C4A47582A for ; Mon, 19 Aug 2002 03:12:01 -0400 (EDT) Received: from artemis.cuci.nl (artemis.cuci.nl [212.125.128.9]) by virtual1.giganet.nl (BuGless_3.01) with ESMTP id g7J7C1H07192 for ; Mon, 19 Aug 2002 09:12:01 +0200 Received: from adlsa ([10.1.12.174]) by artemis.cuci.nl (BuGless_3.01) with ESMTP id g7J7BxSN030705; Mon, 19 Aug 2002 09:12:00 +0200 Message-Id: <200208190712.g7J7BxSN030705@artemis.cuci.nl> Received: from Spooler by adlsa (Mercury/32 v3.31) ID MO000016; 19 Aug 02 09:13:04 +0200 Received: from spooler by arbodienst-limburg.nl (Mercury/32 v3.31); 19 Aug 02 09:10:21 +0200 From: "Jules Alberts" Organization: ARBOdienst Limburg BV To: Postgres Admin List Date: Mon, 19 Aug 2002 09:10:08 +0200 MIME-Version: 1.0 Subject: Re: Fw: OID Reply-To: jules.alberts@arbodienst-limburg.nl Cc: Postgres Admin List In-reply-to: <3D5D6354.4060507@joeconway.com> X-mailer: Pegasus Mail for Windows (v4.02) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/207 X-Sequence-Number: 5322 On 16 Aug 2002 at 13:40, Joe Conway wrote: > Jodi Kanter wrote: > > Does anyone have a comment on the email below? Is there a general > > consensus on whether or not to use OIDs with version 7.2? > > > > > > > Can anyone point me to some documentation on the use of OIDs? Why > > might I need them? How to remove them in version 7.2? ..etc... > > I think you're best to avoid using them. They are primarily for internal > system use. If you need an incrementing integer field, create your own > with SERIAL, or integer field and a sequence. Is there any consensus aboit avoiding OIDs? I'm running a small test system right now using OIDs as a means to refer to BLOBs. Should I expect any trouble using OIDs in our future production system? TIA! From cjs@cynic.net Mon Aug 19 14:51:25 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id AA2F5475DCB for ; Mon, 19 Aug 2002 10:51:25 -0400 (EDT) Received: from angelic.cynic.net (P211018239189.ppp.prin.ne.jp [211.18.239.189]) by postgresql.org (Postfix) with ESMTP id 964684754A3 for ; Mon, 19 Aug 2002 10:51:23 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by angelic.cynic.net (Postfix) with ESMTP id 98F648705; Mon, 19 Aug 2002 23:51:20 +0900 (JST) Date: Mon, 19 Aug 2002 23:51:20 +0900 (JST) From: Curt Sampson To: Jules Alberts Cc: Postgres Admin List Subject: Re: Fw: OID In-Reply-To: <200208190712.g7J7BxSN030705@artemis.cuci.nl> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/208 X-Sequence-Number: 5323 On Mon, 19 Aug 2002, Jules Alberts wrote: > Is there any consensus aboit avoiding OIDs? I'm running a small test > system right now using OIDs as a means to refer to BLOBs. Should I > expect any trouble using OIDs in our future production system? I don't know if there's a consensus, but I certainly avoid using OIDs completely in my own tables. They're can wrap, for a start, so in a really busy, large database you might end up getting one that you already have. Also, I don't like "hidden" fields; if I'm going to refer to soemething, I like it to be nice and obvious what's being referred to. And of course they're not portable. cjs -- Curt Sampson +81 90 7737 2974 http://www.netbsd.org Don't you know, in this new Dark Age, we're all light. --XTC From tgl@sss.pgh.pa.us Mon Aug 19 15:04:26 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 9A38F475DCB for ; Mon, 19 Aug 2002 11:04:26 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 06007475CEF for ; Mon, 19 Aug 2002 11:04:26 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g7JF41Vk007008; Mon, 19 Aug 2002 11:04:01 -0400 (EDT) To: Curt Sampson Cc: Jules Alberts , Postgres Admin List Subject: Re: Fw: OID In-reply-to: References: Comments: In-reply-to Curt Sampson message dated "Mon, 19 Aug 2002 23:51:20 +0900" Date: Mon, 19 Aug 2002 11:04:01 -0400 Message-ID: <7007.1029769441@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/209 X-Sequence-Number: 5324 Curt Sampson writes: > On Mon, 19 Aug 2002, Jules Alberts wrote: >> Is there any consensus aboit avoiding OIDs? I'm running a small test >> system right now using OIDs as a means to refer to BLOBs. Should I >> expect any trouble using OIDs in our future production system? > I don't know if there's a consensus, but I certainly avoid using OIDs > completely in my own tables. They're can wrap, for a start, so in a > really busy, large database you might end up getting one that you > already have. Also, I don't like "hidden" fields; if I'm going to refer > to soemething, I like it to be nice and obvious what's being referred > to. And of course they're not portable. As far as using BLOBs goes, you don't have a lot of choice: the lo_xxx family of functions take and return OID, end of story. Of course Postgres' notion of a BLOB isn't very portable anyway. I do agree that for a primary key in a user table, there's no very good reason to use OIDs rather than using a SERIAL field (ie, a sequence). regards, tom lane