General question regarding sequences (Serial columns) - Mailing list pgsql-admin

From Benjamin Krajmalnik
Subject General question regarding sequences (Serial columns)
Date
Msg-id BF337097BDD9D849A2F4B818DDB27987029350@stash.stackdump.local
Whole thread Raw
List pgsql-admin
I am in the process of writing a migration utility to move data from a
SQL Server to PostgreSQL.  The original schema contains identity fields.
When converting the schema, I have 2 option - either make them serial
(or bigserisl) columns, with the associated automatic constraint, or
declaring the associated sequences separately and invoking the
generators in code.

If I were to use the former (use Serial/BigSerial), is there a command
which I can issue to keep PostgreSQL from using the sequence, and
therefore copying over the original identity field value?  Something
equivalent to SQL Server's "SET IDENTITY_INSERT" command?


pgsql-admin by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: database physical storage
Next
From: "Benjamin Krajmalnik"
Date:
Subject: Re: General question regarding sequences (Serial columns)