maintaining sequences

From: roypgsqlgen(at)xemaps(dot)com
To: pgsql-general(at)postgresql(dot)org
Subject: maintaining sequences
Date: 2001-09-13 19:30:01
Message-ID: 200109131930.f8DJUQ700309@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hey guys,

In SQL Server, if you need to move a table with an identity column (a default sequence) with its data over to another database, you can create the table, turn off the identity column, bulk copy the data into the table, then turn the identity column back on. Is there a convenient way to do this in postgreSQL with a column that has a default sequence value?

Or I guess I'm asking if I can add a default sequence into a column after I've created the table and added data to it?

Roy.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mihai Gheorghiu 2001-09-13 19:42:22 Naming conventions
Previous Message Stephan Szabo 2001-09-13 19:06:17 Re: Working with dates and queries