Re: maintaining sequences - Mailing list pgsql-general

From Shaun Thomas
Subject Re: maintaining sequences
Date
Msg-id Pine.LNX.4.33L2.0109131447060.10387-100000@hamster.lee.net
Whole thread Raw
In response to maintaining sequences  (roypgsqlgen@xemaps.com)
List pgsql-general
On Thu, 13 Sep 2001 roypgsqlgen@xemaps.com wrote:

> 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?

The easiest way to do this is just create your table as normal, do
your data load (it will ignore the sequence if you're manually setting
the identity columns) and then drop and recreate the sequence with
the starting value you want.

See, easy. ^_^

--
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
| Shaun M. Thomas                INN Database Programmer              |
| Phone: (309) 743-0812          Fax  : (309) 743-0830                |
| Email: sthomas@townnews.com    AIM  : trifthen                      |
| Web  : hamster.lee.net                                              |
|                                                                     |
|     "Most of our lives are about proving something, either to       |
|      ourselves or to someone else."                                 |
|                                           -- Anonymous              |
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+



pgsql-general by date:

Previous
From: "Mihai Gheorghiu"
Date:
Subject: Naming conventions
Next
From: "Mihai Gheorghiu"
Date:
Subject: Sequence value