Received: from brasileiro.net (slxwy.dorms.usu.edu [129.123.236.160]) by postgresql.org (Postfix) with ESMTP id 699A14775C8 for ; Mon, 15 Apr 2002 09:19:50 -0400 (EDT) Received: from roberto by brasileiro.net with local (Exim 3.35 #1 (Debian)) id 16x6P7-0003Mb-00; Mon, 15 Apr 2002 07:20:21 -0600 Date: Mon, 15 Apr 2002 07:20:21 -0600 From: Roberto Mello To: Camila Rocha Cc: pgsql-docs@postgresql.org Subject: Re: Oid and Oid Vector Message-ID: <20020415132021.GA12893@cc.usu.edu> References: <50da3813.0204131158.5b4dfe09@posting.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <50da3813.0204131158.5b4dfe09@posting.google.com> User-Agent: Mutt/1.3.28i X-message-flag: Please consider using an e-mail program other than Outlook. It's insecure. X-Archive-Number: 200204/16 X-Sequence-Number: 1341 On Sat, Apr 13, 2002 at 12:58:37PM -0700, Camila Rocha wrote: > Hi! Oi :-) > I'd like to know why the field Oid can't be used as a foreign key. And oid is for PostgreSQL internal use, and AFAIK not meant to have other semantic meaning applied to it. oid's change when you restore backups for example, probably not a good thing for your application. Just create id attributes in your tables. Make them of type int or int8 or serial depending on your needs. > more information about the type oidvector. What is > it??????????????????? I can't find information about it anywhere. Honestly I don't know. > I'm asking these questions because i wanted to use the oid field as > primary key of may tables, and relate them using the oid too. I i > wanted to use the oidvector for this kind of things too. What did you want to do with oidvectors? -Roberto P.S.: Next time don't send this type of questions to the -docs list, which is for documentation discussions. The -general (which you seem to have cross-posted to) or the -sql list seem more appropriate. -- +----| http://fslc.usu.edu/ USU Free Software & GNU/Linux Club |------+ Roberto Mello - Computer Science, USU - http://www.brasileiro.net/ http://www.sdl.usu.edu/ - Space Dynamics Lab, Developer