Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 22BBE9FB8A8 for ; Fri, 16 Mar 2007 11:19:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 97470-04 for ; Fri, 16 Mar 2007 11:19:49 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id C8CFC9FB692 for ; Fri, 16 Mar 2007 11:19:49 -0300 (ADT) Received: from [192.168.1.50] (or-67-76-146-141.sta.embarqhsd.net [67.76.146.141]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l2GEJZCU019802 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 16 Mar 2007 07:19:36 -0700 Message-ID: <45FAA7AF.7000806@commandprompt.com> Date: Fri, 16 Mar 2007 07:20:31 -0700 From: "Joshua D. Drake" Organization: Command Prompt, Inc. User-Agent: Thunderbird 1.5.0.9 (X11/20070103) MIME-Version: 1.0 To: Adam Radlowski CC: "gunartha.nyoman" , pgsql-admin@postgresql.org Subject: Re: how to add oids field References: <005d01c767a5$88c3da30$fd0010b2@idas> <45FAA0B7.9000308@informatyka.gdansk.pl> In-Reply-To: <45FAA0B7.9000308@informatyka.gdansk.pl> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Fri, 16 Mar 2007 07:19:36 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/99 X-Sequence-Number: 24923 Adam Radlowski wrote: > gunartha.nyoman napisał(a): >> hi, >> I am new comer in this millis... >> i have a poblem, how to add a field/column in existing table without >> oids. >> if i create new table i can add field oids More important, you shouldn't be doing this. OIDs are not for user consumption. Joshua D. Drake >> >> Thank alot before >> >> regrads >> Nyoman/bali >> > So - create a new table with this same structure, but with oids, copy > all records into new table. Retrive all the information about the old > table (keys, indexes, triggers, etc.). Delete old table, rename new > table to old name, create all needed indexes, keys, triggers,etc. > bregards > Adam > > > ---------------------------(end of broadcast)--------------------------- > TIP 9: In versions below 8.0, the planner will ignore your desire to > choose an index scan if your joining column's datatypes do not > match > -- === The PostgreSQL Company: Command Prompt, Inc. === Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240 Providing the most comprehensive PostgreSQL solutions since 1997 http://www.commandprompt.com/ Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate PostgreSQL Replication: http://www.commandprompt.com/products/