Re: Migration problem - serial fields

From: Jochen Mader <jochen(at)teg-webmedia(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Migration problem - serial fields
Date: 2002-03-07 16:40:58
Message-ID: 1015519258.23888.14.camel@traumschiff
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


> 1. Do the transfer, put values into the serial field, then find the
> highest value and manually set the sequence somehow to start from
> highest+1 (seed value). (I understand there is a problem with orphan
> sequences with serial fields if you drop tables, so maybe I shouldn't
> use serials anyway?)
I'd suggest to use this sollution. I have had the same problem some time
ago and solved it by inserting my tables and then creating the erial.

Cheers
Jochen

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-03-07 16:41:11 Re: Explain SQL feature
Previous Message Chad R. Larson 2002-03-07 16:35:40 Re: Solaris x86 vs Linux vs *BSD for PostgreSQL?