From: Tom Lane <tgl@sss.pgh.pa.us>
To: Carol Walter <walterc@indiana.edu>
Cc: pgsql-admin@postgresql.org
Subject: Re: Database conversion type serial question
Date: Fri, 14 Mar 2008 11:17:31 -0400
Message-ID: <17944.1205507851@sss.pgh.pa.us> (raw)
In-Reply-To: <99CE0FBA-30CB-4DB8-8F58-C7CA1A9EDDB3@indiana.edu>
References: <99CE0FBA-30CB-4DB8-8F58-C7CA1A9EDDB3@indiana.edu>
Carol Walter <walterc@indiana.edu> writes:
> Can I designate a column not
> previously defined as serial to serial.
"serial" is not really a type. It's just a convenience macro for
creating a sequence and setting the column's default expression.
So what you do is perform those steps manually. See
http://www.postgresql.org/docs/8.2/static/datatype-numeric.html#DATATYPE-SERIAL
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, walterc@indiana.edu
Subject: Re: Database conversion type serial question
In-Reply-To: <17944.1205507851@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox