X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 8DA5CD1B1C7 for ; Tue, 18 May 2004 15:56:47 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 42681-04 for ; Tue, 18 May 2004 15:56:28 -0300 (ADT) Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by svr1.postgresql.org (Postfix) with ESMTP id EC264D1B193 for ; Tue, 18 May 2004 15:56:26 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-30.mail.demon.net with esmtp (Exim 3.35 #1) id 1BQ9lI-0007zy-0U; Tue, 18 May 2004 19:56:25 +0100 Received: from [192.168.1.17] (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 42B0216706; Tue, 18 May 2004 19:56:23 +0100 (BST) Message-ID: <40AA5C56.2030105@archonet.com> Date: Tue, 18 May 2004 19:56:22 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 0.6 (X11/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ricardo Maia , pgsql-sql@postgresql.org Subject: Using "Without OIDs" References: <20040517163736.23605.qmail@web20311.mail.yahoo.com> <40A8FF32.4050003@archonet.com> <1084904813.52367.44.camel@jerusalem.univap.br> In-Reply-To: <1084904813.52367.44.camel@jerusalem.univap.br> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/160 X-Sequence-Number: 17874 Ricardo Maia wrote: > Hi, > > I'm from Brazil, and i have a question. Hi Ricardo, happy to help, but three points: 1. Always make sure you use "reply to all" on the PostgreSQL lists 2. For a new question, send a new message to pgsql-sql@postgresql.org, since most direct email to this address goes into my spam bin. 3. You caught the subject-line change yourself in your next posting. > Exists some problem if i not uses the option "without oids"? > I read the manual, but I don't understand what I earn if i use it. The OIDs are used by PostgreSQL's system tables. So, you can do something like SELECT oid,relname,reltype FROM pg_class; This will give you the number PG uses to refer to tables (etc.), the name you use and the type of thing it is. This type is also an OID. These OIDs were never really meant to be for user-tables, but some people used them as a default primary-key. This was a bad idea, but since the column was always there you couldn't stop them. The developers couldn't just turn OIDs off for user tables without breaking some applications, so they added an option to say you didn't want them. If you specify you don't want OIDs that table will use 4 bytes less for every row, and so be a bit faster. I believe in the next version, the default setting will be not to have OIDs and you will have to specify "WITH OIDS" if you do want them. HTH -- Richard Huxton Archonet Ltd