Re: Migration problem - serial fields - Mailing list pgsql-general

From Jochen Mader
Subject Re: Migration problem - serial fields
Date
Msg-id 1015519258.23888.14.camel@traumschiff
Whole thread Raw
In response to Migration problem - serial fields  (rick@planetdigital.com (Rick))
List 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


pgsql-general by date:

Previous
From: "Shaun Grannis"
Date:
Subject: Advice for optimizing queries using Large Tables
Next
From: "Len Morgan"
Date:
Subject: Re: Temp Tables