Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 3E088B5DC22 for ; Fri, 15 Jul 2011 16:45:39 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 50809-07 for ; Fri, 15 Jul 2011 19:45:32 +0000 (UTC) X-Greylist: delayed 00:05:26.802392 by SQLgrey-1.7.6 Received: from nrccenhts1.nrc.ca (nrccenhts1.nrc.ca [132.246.15.88]) by mail.postgresql.org (Postfix) with ESMTP id 8D677B5DC1F for ; Fri, 15 Jul 2011 16:45:32 -0300 (ADT) Received: from NRCWSTHCM1.NRC.CA (132.246.216.66) by nrccenhts1.nrc.ca (132.246.15.88) with Microsoft SMTP Server (TLS) id 8.1.436.0; Fri, 15 Jul 2011 15:40:02 -0400 Received: from [132.246.194.17] (132.246.216.202) by WSTMAIL.NRC.CA (132.246.216.66) with Microsoft SMTP Server (TLS) id 8.1.436.0; Fri, 15 Jul 2011 12:40:01 -0700 Message-ID: <4E209790.2050102@nrc-cnrc.gc.ca> Date: Fri, 15 Jul 2011 12:40:00 -0700 From: Isabella Ghiurea Reply-To: isabella.ghiurea@nrc-cnrc.gc.ca Organization: CADC -NRC User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: "pgsql-admin@postgresql.org" Subject: PG 8.4 and identity columns Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201107/119 X-Sequence-Number: 37898 Hello PGlist, We are interested in migrate some data with identity/sequential columns from a non PG database into PG database , tables with identity columns. First Q is : are system generated/identity columns values supported in PG8.4 if yes, I would like to know if there is a option to control this values: aka : can we set the identity value "off" while we are inserting some already generated values and next turn "on" the identity column option in PG ? next Q : can we set the gap of the values, and can we set what the next generated value /start value to our choice? Thank you Isabella -- ----------------------------------------------------------- Isabella A. Ghiurea Isabella.Ghiurea@nrc-cnrc.gc.ca Canadian Astronomy Data Centre |http://www.nrc-cnrc.gc.ca/eng/services/hia/data-centre.html National Research Council of Canada, Herzberg Institute of Astrophysics 5071 West Saanich Road, Victoria BC V9E 2E7, Canada Phone: 250 363-3446 fax: 250 363-0045